IBM Urabancode using Restful API - rest

Is it possible to pull components, Snapshots and Environment from Dashboard of UrbanCode into my Web application dropdown list using Rest APi. Thanks in Advance..

If you want the contents of the Dashboard view, which shows currently running processes, you can use the (internal, unsupported) REST API. By opening up the developer tools in your browser or a plugin such as Firebug and then loading the dashboard page, you can see the REST requests that create the page. The request that gets the current activity is something like this:
https://ucd.example.com:8443/rest/workflow/currentActivity?rowsPerPage=10000&pageNumber=1&orderField=startDate&sortType=desc
So you can use that GET call to rest/workflow/currentActivity to get the same sort of info that's on the dashboard. Is that what you're asking for?

Related

How to upload Click conversions using the Google Ads API Rest Interface

I am trying to track a Click conversion with Google Ads using the Rest API but I can't find any helpful resources.
Right now the user flow looks like this:
User clicks on Ad -> User opens Website -> User downloads the Flutter App (gclid will be passed via dynamic links) -> User Signs up -> New Customer.io Event will be triggered (contains gclid) -> Upload conversion to Google Ads
The problem lies with the last step. In customer.io I can only use a Rest Call to upload the converion to Google Ads. I cannot use the client library of Google and I can't figure out from the documentation which call exactly I have to make here.
(Unfortunatly Google itself is advising against using the Rest API but also states that it is possible by itself. Also I don't have any other options here than going the route via Customer.io and making the Rest Call)
I would really appreciate any kind of help, thank you!
Method: customers.uploadClickConversions
Processes the given click conversions.
https://developers.google.com/google-ads/api/rest/reference/rest/v12/customers/uploadClickConversions

I want to fetch all JIRA release versions to confluence, How can i fetch all versions to confluence macro and show with custom view

I want to create Confluence plugin which fetches JIRA issues,
I know there is already one macro which fetching issues but my use case is different so I have to create own confluence macro.
JIRA has rest APIs for all issues, I don't understand how to integrate rest API and authentication in confluence macro.
What are the ways to fetch JIRA release version to confluence page.
Is there any sample code or tutorials which exactly shows integration between Confluence and Jira with customization.
Quite a broad question.
Assuming you're working with a Confluence server version, you'll have to write a Confluence plugin and implement your custom macro. There is some documentation available here.
Your plugin will require that there's an Application Link from Confluence to JIRA. There are java API classes that allow you to retrieve the application links in your plugin. Using the application link you can get an ApplicationLinkRequestFactory that allows you to send REST API requests to the application you're targeting, ie. JIRA.
Then you can use JIRA's REST API to retrieve the info that you need and provide a template for your macro that displays the info the way you like it.
Relevant docs:
ApplicationLinkService
ApplicationLink.createAuthenticatedRequestFactory()
SAL API RequestFactory
JIRA REST API: GET /rest/api/2/project/{projectIdOrKey}/versions
Related questions:
Get Credentials from Current User in Atlassian Plugin
https://community.atlassian.com/t5/Answers-Developer-Questions/What-is-the-recommended-way-to-send-REST-requests-from-a-custom/qaq-p/568227

Google Analytics API Easy Dashboard Javascript Library

I want to use the Google Analytics API to show analytics data in our CMS.
As every website runs the CMS under their own domain like domain.com/cms I do not want to use webapplication API access. I want to use a API Service Accounts, so there is no domain check using the API, in stead it uses a client id (different from webapplication access) and a private key.
So far, so good. I set up the connection with the API and I can read google analytics data.
But I would like to show some charts.
Easy Dashboard Javascript Library is very handy, but it uses webapplication API access, so it checks the URL where it is called from. And I don't want this. Is there a way to simply create charts (with this library or another), and using Service Account API access?
You can get the data from your Google Analytics Service Account and use the data to create charts using the many libraries available using javascript or jquery.
http://www.1stwebdesigner.com/css/top-jquery-chart-libraries-interactive-charts/

YouTube API: Dashboard vs API Console

I'm implementing server-side interactions with YouTube and I'm a bit lost with the kind of Product/App you need to create in order to publish videos via the API for example.
Looking at the OAuth2 doc, it says that I need to register my app with the API Console (looks good so far, very similar to creating a Facebook App).
But then, I looked at the Google .NET library and here it says that a Product needs to be registered in the YouTube dashboard... Not sure to understand how these are complementary. If anyone has a synthetic explanation (which I didn't found in the docs), I would be grateful.
Thanks
I'm not 100% sure but I believe:
The YouTube Dashboard was originally setup prior to the announcement of YouTube API v3, which is yet to be released. You use the Dashboard to register your application and get a YT Dev Key. You can also use the Dashboard for some extremely low level application statistics.
The API Console is Google's attempt to form one administrative console for ALL of their APIs. Since Google is transistioning to oAuth 2 authorization, you will need to use the API console as well in order to apply for a clientID, redirectURI, and clientSecret if you want to authorize with oAuth 2.
At this time, if you do not want to use oAuth2 you do not need access to the API Console. However, know that in February of next year YouTube is going to kill all other forms of authorization (sub, clientLogin, oAuth1).
So to try and simplify things:
Use the API Console to get your oAuth2 in order
Use the YT Dashboard to get a YT Dev Key
In the future, when Google goes lives with YouTube API v3, you will probably want to switch to a new Dev Key from the API Console and leave the Dashboard all together.

Export Google Analytics chart for specific URL

I would like to show a graph of visitors (eg. 7 days back) on a specific subpage on my website - not the entire site!
I've been looking at:
http://www.jensbits.com/2010/06/23/google-analytics-data-export-api-with-google-chart-visualizations-2/
.. but i cant figure out how to show a graph for a specific url/subpage.
Any ideas?
Follow these steps
1.Go to your Google Analytics Account.
2.Click on the 'gear' icon. It will show you 3 tabs-> Profile, Tracking Code and Property Settings. Click on Tracking Code.
Under What are you tracking? select A Single Domain radio button. It will show you its corresponding options on the right. Select I want to track PHP pages. It will show you the tracking code underneath. Copy paste the code in the php file/page you are willing to track.
Dont worry about the query parameters. They will be identified automatically with respect to the tracking code. So if your page identifies 100 different layouts with respect to the parameters, they will show up in your analytics account.
Use the following Api to export data from your account
Google Analytics PHP API
Then, after you have received the data, you can set up an ajax request that fetches the data from your PHP script and embeds it in your site using a javascript API chart builder. This is also available with Google
Google Charts API
Hope that helps. All the best!