Get online players data via battle.net API - world-of-warcraft

Can I get battle.net player data in my web app via API?
I am particularly interested in who is online!
Thanks!

Looking at the WoW Character Profile API at https://dev.battle.net/io-docs, the only call that might return whether someone is online is FEED, which returns "The activity feed of the character." I suspect this does not return the online status, but cannot confirm as I don't have an API key.

Related

Microsoft Graph paging with list message and list reply?

I'm integrating Microsoft Teams into my app using microsoft graph API.
But with the API to get list message, I used parameter $top={pageSize} for pagination, then I got surprised that in the first call, the response returned "pageSize - 1" records, not exactly the number of pageSize.
In contrary, the API to get list replies, it returned exactly "pageSize" records in the first call.
I don't understand why is there a difference like this between message and relpy. Can anyone help me?
This is the pattern of the API that I used:
https://graph.microsoft.com/beta/teams/{teamId}/channels/{channelId}/messages?$top={pageSize}
https://graph.microsoft.com/beta/teams/{teamId}/channels/{channelId}/messages/{messageId}/replies?$top={pageSize}
We could able to reproduce the issue on our side raised a bug.

Spotify API - Get track foreign ID

Since Spotify announced to close Echo Nest API and migrate several methods in Spotify API, I decided to implement theses new functions now.
Like Echo Nest API, is it possible to get a track with a foreign ID like Deezer ? Or to get the foreign ID of a Spotify track ? At May 31 maybe ?
Thanks.
Right now there is no info about it. No one can tell. I already know of another developer hoping for the same. He asked about it here and here. You can see that he posted on Spotify web api Github site and got no answer.

Can't figure out how to access Dice.com's REST API

So I want to use Dice.com's API to grab data for an infographic type application.
http://www.dice.com/common/content/documentation/api.html
My problem is they require a Developer ID and password. I'm not sure where I can get this since it's required for the OAuth token.
I plan on using Node.js to make requests to their RESTful service. Any information would be greatly appreciated.
I emailed dicemedia#dice.com (email grabbed from http://www.programmableweb.com/api/dice-jobs) and got a reply:
Thanks for your interest in the Dice API! It's currently not available
for public use. We've been field testing it at some events and hope
to open it up by the end of Q2 2015.
We'll definitely make an announcement when it opens up.
Please let me know if you have any other questions.
Thanks!
I found it pretty easy to get started hacking around with this using Postman (actually for searches you could just start in a browser, with a JSON plugin installed or the like).
http://www.dice.com/common/content/util/apidoc/jobsearch.html

Why will Foursquare hereNow endpoint not return items?

My application uses hereNow api. I checked-in CORRECTLY (i.e. physically present in the location) to a venue and then var_dump the request response from calling the hereNow endpoint, so it returns "count" but "items" is empty as shown below.
string '{"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":1}}],"response":{"hereNow":{"count":1,"items":[]}}}' (length=138)
I attempted the same thing using foursquare explorer but obtained similar result. Could you kindly explain why this could be so and what is the idea behind "unreadcount". Thank you.
a) Make sure that the OAuth token you are using to make the hereNow request is for the same user who checked in. You must be acting on behalf of a user who has checked in to a venue to see who is "here now"
b) It's possible that your check-in is being recognized as a cheat because you have checked in too frequently recently, or the lat/long coordinates provided by your device were not accurate enough.

Foursquare API for mobile application

Im new to foursquare api. I would like to know whether foursquare api will return the latitude and longitude of the user location(when GPS enabled), or should we use another method to get current user location.
Thanks in advance
You should get current user location reading GPS data from user device and use it when requesting Foursquare API endpoints. For an example, see https://developer.foursquare.com/docs/venues/search
As far as I know, a server API (such as Foursquare) has no means to get your current location except for Geo-IP services (not always accurate).
I have found that when using venue/search, etc. to find information, the response back to the api web call is filled with all sorts of information, including a "field" called location, that on android systems had to cast to JSONobject then you can get the lat and long of that place and distance from you if used with radius. Like above, use your gps and the development language to get that information.

Resources