Nokia MixRadio REST API fetching charts - rest

I am using Nokia Mixradio REST api to get the charts. But i can request the charts for a particular country only. I want to get the charts for a particular genre of a particular country. Here's the request message which I am using currently. Is there a way to get the charts for a particular genre?
http://api.mixrad.io:80/1.x/in/products/charts/album?itemsperpage=50&startindex=0&client_id=eac56b8ec397c8a40a4c66ce703a70c5&domain=music

We don't have an API specifically for that, but you can get the information by searching for artists, albums or tracks for the specific genre - e.g. http://api.mixrad.io/1.x/in/?itemsperpage=50&startindex=0&client_id=eac56b8ec397c8a40a4c66ce703a70c5&domain=music&genre=Bollywood&category=album - more search options are documented here: http://dev.mixrad.io/doc/rest/public/Search.html

Related

Get the total earnings from a specific URL using the Adsense Management API

Is it possible to get the total all-time earnings of a specific URL (say, https://example.com/page/xyz) using the AdSense Management API? (preferably the PHP library).
If so, please post a code answer or atleast a concept of how it could be implemented.
BTW, the number of ad units or any specific ad units dont matter; I just want the total income from a specific URL on my site using the API
You can use URL Channels to declare the specific pages you want to track, and then in the API you can include the URL_CHANNEL_ID or URL_CHANNEL_NAME dimension in your report to break down by URL.
Once your URL Channels are set up, you can check out the AdSense API example repository to see how to run a report. This repository has different folders for different PHP versions. Choose the folder corresponding to your version, then go to examples/GenerateReport.php for a starting point. The AdSense API docs have a full list of Dimensions and Metrics and the full report specification in case you want to make other changes.

DOCUSIGN REST API: Search by title/name of Envelope

I am trying to search for a list of envelopes in Docusign with the similar title/name. Is there a way to do this in REST API? The closest i can find is the SearchFolder API but it seems like it only allow to specify dates, folders (Draft,Sent etc) without a way to search by title.
yes, you can do that using the v2.1 API.
See here https://developers.docusign.com/esign-rest-api/guides/concepts/envelopes/search
using the search_taxt query parameter you can search for a specific text.
GET
/v2.1/accounts/4644/envelopes?search_text=Tabs&from_date=2019-03-04T00:00:00.000Z&to_date=2019-03-07T00:00:00.000Z

How to get github users from city using Github REST API?

Background
I am working on an app and I need to get all the projects of all github users that live in a given city using the GitHub Rest API v3: https://developer.github.com/v3/
Research
Now I know I can get all the users with the following url:
https://api.github.com/users
And once I have a user, I can get all his repos and info from there.
Problem
The problem is that I don't know how to filter those users by city!
I have tried adding a paramter location=London but it always returns the same, probably because this is not the real parameter...
Another option would be to get all the github users from the world, and then filter them by city .... which would be totally insane.
The best option I found so far was to use this link:
https://github.com/search?q=language:javascript+location:Barcelona&type=Users
However, this link is the web version, which does not use the REST API.
Question
How do I get all the users from a given city using the Github REST API?
You are using the /users endpoint. You need to use the /search/users endpoint:
https://api.github.com/search/users?q=location%3Aiceland
Will search for users located in Iceland
Using that gets me a response with a bunch of users and after cross checking the first 3, they all have their location set to "Iceland" in their profiles.

OneSignal REST API get segment count

Having read the REST API documentation, I couldn't find any information related to getting the segment count for a notification. Is it possible to get it using the REST API? Getting the segment count is possible in OneSignal developer panel as you can change the filters and see the estimated number of clients who receive your notification. But I want to get that estimated number using the REST API.
It is not possible to get the estimated receiving users before creating the notification using the REST API. A workaround to this would be creating templates and using the template_id in the API call.

what is webservice url for getting all online stores for a particular product using google proguct search api?

Hi
I had the product name....
I need to get all the online stores available for that product.
But i have to use google product search API
Can you please give the URL for searching online stores for that product......
Thanks in advance..
Using the Google Search API for shopping, you can diversify results to one per vendor, with a query for the product name such as::
https://www.googleapis.com/shopping/search/v1/public/products?q=apple+iphone+4&country=US&alt=json&key=KEY&crowdBy=accountId%3A1
Note, you will need to get your own developer key and put it in the KEY parameter.