It looks like the sonar web api changed in the last days. At least one of my projects using the api isn't working anymore.
I specifically need to access the source code of components / files.
According to the online doc (http://docs.codehaus.org/pages/viewpage.action?pageId=229743288) this should be possible with a call like 'http://nemo.sonarqube.org/api/sources?resource=org.codehaus.sonar:sonar-plugin-api:org.sonar.api.measures.CoreMetrics' what isn't working anymore.
Can anybody tell me how to access the source code of a file via the current sonar web api? Help would be very appreciated.
Thanks and best regards,
Robert
The API hasn't changed. But the key of components has changed in SonarQube 4.2. I updated the example on http://docs.codehaus.org/pages/viewpage.action?pageId=229743288
Related
Sonar reports the lines of code iformation for each language on each project's dashboard.
In order to create a report from 70+ projects, we use THE Sonar's REST API. Currently we iterate over all files of a project to retrieve each file's lines of code. Here we run into the limits issue (the result is cut off at 500 entries, there is no paging on the REST API). See SonarQube API result limit, and https://jira.sonarsource.com/browse/SONAR-2920.
Hence the pulled numbers are wrong, and we need to manually fix the report.
Now my question: Is there a way to pull the numbers shown on the project's dashboard through the REST API? Or going to the database? (Sure, not ideal, but I need to solve my problem ;-)
Thanks in advance.
Why do you want to go through each file to compute the projects' lines of code ?
Why not use the api/resources WS ?
documentation
example
HTH
Specifically speaking, is it possible to use Consolibyte's Quickbooks PHP DevKit into an app using the CodeIgniter framework? If so, where would I place it in my directory structure, and how would I access it? I'm just doing some preliminary research into whether or not this could be used to integrate my app with Quickbooks Online.
Thanks for any input!
is it possible to use Consolibyte's Quickbooks PHP DevKit into an app using the CodeIgniter framework?
Yes, of course!
If so, where would I place it in my directory structure, and how would I access it?
Entirely up to you. Usually people put it in a library/quickbooks/ directory or something. Then, just use require_once 'path/to/library/quickbooks/QuickBooks.php'; like you would with any other PHP script.
I'm just doing some preliminary research into whether or not this could be used to integrate my app with Quickbooks Online.
It can be used for that.
You'll need a controller that kicks off the OAuth process. So basically you'll use the code from here:
https://github.com/consolibyte/quickbooks-php/blob/master/docs/partner_platform/example_app_ipp_v3/index.php#L134
To show the connect button, and then put this code into a controller to kick off OAuth:
https://github.com/consolibyte/quickbooks-php/blob/master/docs/partner_platform/example_app_ipp_v3/oauth.php
From there, you can use the other example code snippets to exchange data with QuickBooks.
If you have trouble, post your code so we can see what you're doing (feel free to use our support forums if you need more detailed help/discussion: http://www.consolibyte.com/forum/)
I am building an app where two different users will edit the same document online, using only plain text. For this I am using the google-api-php-client-master hosted on github.
There are some examples, but I don't understand what I need to do to achieve my goal. The official documentation is deprecated because it reffers to a library that is not online, and all the classes have different names and ways of working.
I already got my credentials, and know how to get a list of the documents hosted on my drive account. But now I need to:
Create new document
Grant access to a non-google logged in user, just accessing the link
I don't expect anybody to give me a written solution, but to know where I have to start.
Thanks a lot for reading.
Ok im trying to do almost the same thing and this is what i know so far:
Most importantly please reffer to the docomentation: https://developers.google.com/drive/v2/reference
There is a written example on how to create new file!( section files->insert)
One way to make a gdrive file public is to share it to the web via the google api. Another way is to make revision of it( section revision->update) and then publish it( by setting "published" = true in the update request).
Being aware of your requirements i gues that the publishing wont really help you achieving your goal, because it is just a revision of the document from the past and not its current state.
I would like to work in Java with this Google Apps Admin SDK.
There is no samples (https://developers.google.com/admin-sdk/reports/v1/libraries, link not working), download library is not working, found: https://developers.google.com/resources/api-libraries/download/stable/apps/reporting/reports/v1/java, from https://developers.google.com/admin-sdk/reports/v1/api-lib/java
Is only available using, building, treating JSON?
Thanks
The link on the documentation page is not working, but the team is aware of it and working on fixing the links. In the mean time you can find the download URLs here:
For reports API:
https://developers.google.com/resources/api-libraries/download/admin/reports_v1/java
For directory API:
https://developers.google.com/resources/api-libraries/download/admin/directory_v1/java
I am wondering if anyone can point me to which Web-Api Help Generator I should use.
I found this post but it is already a year old and seems to be outdated.
I think ApiExplorer is now Web API Help.
The post also talks about Swagger which from some demos looks a lot nicer and seems like you can do like post requests and such but I am unsure if it still in development as it's been like a year since the last update.
Anyone have any experience with either of them?
The "Web API Help Page" package (Microsoft.AspNet.WebApi.HelpPage) is built on top of ApiExplorer.
Web API Help Page generates documentation pages and adds them to your project.
ApiExplorer gives you a lower-level API that just gives you the API descriptions, which you can use to create documentation.
See: http://www.asp.net/web-api/overview/creating-web-apis/creating-api-help-pages
I haven't used Swagger. From the readme, it's also built on top of ApiExplorer.