Where to find current yahoo API game IDs - yql

For the Yahoo fantasy sports API, the documentation listing game IDs stops at the year 2012 for NFL. Can anyone tell me how I can get a list of current game IDs.

Make a signed GET request to the API's game resource specifying mlb, nhl, nfl, or nba as the sport. I'd provide the link to the API resource, but StackOverflow thinks it's spam and won't let me include it.
If it helps specifically, the GameIDs for this year's MLB and NFL Games are 370 and 371 respectively.

Once you are logged in through Oauth you can query all of the "games" the current user has access to using:
https://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/games;game_keys/?format=json

Related

How to get free and busy rooms details in microsoft graph API for particular time period?

Is there any microsoft office graph API available where I can get available and busy meeting room details.
My requirement is that I will pass some start date time and end date time and expect all the available and busy room list.
As for as I know we can add room outlook portal admin section.
I have gone through below findRoomLists and findrooms API they are just giving rooms information not there status busy/free.
I want status also Is there any functionality available in graph API.
https://graph.microsoft.com/beta/me/findRoomLists
https://graph.microsoft.com/beta/me/findRooms
Have gone through below link but no help.
How to display a list of available meeting rooms at present using Microsoft Graph API
Can't get all busy times of meeting rooms using the Office365 Calendar API
Thanks
Ajay Tiwari
After searching a lot I found Microsoft has an API to do this thing. See https://learn.microsoft.com/en-us/graph/api/calendar-getschedule?view=graph-rest-beta
Description says
Get the free/busy availability information for a collection of users, distributions lists, or resources, for a specified time period.
There's one catch though, it is in beta you have to be careful to use it in production. But for now it is working great.

How to get the old timeline or tweet?

i'm University students of South korea
I'm developing analysis application using bigdata of twitter with my advisor professor. So i'm gathering tweets contains specific keyword(relevant word of crime) at period. I use 'streaming api' and 'search api' now. I have seen that using search api and streaming api result is return tweets of only one week.
I should be get the old data that have keyword of crime and since 2006 until 2016
do you have any idea?
Sadly you can't get tweets from that time range.
From the documentation:
The Search API is not complete index of all Tweets, but instead an index of recent Tweets. At the moment that index includes between 6-9 days of Tweets.
So, you can only get recent tweets from the search API. Be careful too with the data beacuse it's about relevance not completeness, from the same documentation:
Before getting involved, it’s important to know that the Search API is focused on relevance and not completeness. This means that some Tweets and users may be missing from search results. If you want to match for completeness you should consider using a Streaming API instead.
If you really need older tweets you will have to get them from other sources like Gnip. Otherwise you will have to approach differently your problem.
If you have the names (or id's) of all the users that you want to get info you could get the timelines from each user getting up to 3200 tweets.

How to get all reviews from Trip advisor api

I am wondering how to get all reviews for specific place, from Trip Advisor Api. For now my call is
http://api.tripadvisor.com/api/partner/2.0/location/SOMEPLACEID?key=MYAPIKEY
But in location response I have only latest 3 reviews. How can I get them all?
"reviews": [{1},{2},{3}],
"num_reviews": "227",
Qualified Content API users are limited to the display of the three most recent review snippets per location, no additional content is available. Visit TripAdvisor's Content API Developers Google Group to submit questions to their team and read FAQs: https://groups.google.com/forum/#!forum/tripadvisor-api-dev

Measure retweets and top influencer

According to Twitter API, it returns up to 100 of the first retweets of a given tweet.
What is the best way to measure number of retweets, when the amount
is higher than 100?
What is the best way to find top influencer of my tweet (Person, who retweeted my tweet, and he has the highest number of retweets)?
I found the answers:
Twitter API Get Status provide amount of retweets: "retweet_count"
If you want to get all retweets you should periodically query Twitter to get retweets.
Note: In spite, Twitter API allows to return up to 100 retweets, it usually return only latest retweets during last random timing frame.
New style retweets track only first level. Example:
#bob: My Awesome application http://bit.ly/1234
#alice: RT: #bob My Awesome application http://bit.ly/1234
But if #eve RT #alice retweet, the message will be similar to alice's and she won't be mentioned in it.
#eve: RT: #bob My Awesome application http://bit.ly/1234
The old style was (not in use anymore): RT: #alice: RT: #bob My Awesome application http://bit.ly/1234
Important!
There is some Twitter API limit https://dev.twitter.com/docs/rate-limiting/1.1. OAuth-enabled application could initiate 350 GET-based requests per hour per access token.
If you want to work with the Instagram API, the method suggested above will work really well.
I you do not want to work with the API, many free social media tools are available that will do this stuff for you. Search "twitter analytics tools" and you will find an array of options. Crowdbabble has a free trial that will let you track your retweets and the top influencers who follow you -- you can sort your followers in a table by the number of followers they have.

Understanding twitter streaming api response

I am not a very avid user and hence having a hard time figuring out what each field means in twitter api response. Going thru documentation has only resulted in me going in circles.
What I am trying to do is analyzing how things go viral. So, what I did was grabbed data from twitter streaming api with hope of analyzing the response but I am totally confused.
So a sample json response is :
{"created_at":"Thu Mar 14 18:19:12 +0000 2013","id":312266679390457857,"id_str":"312266679390457857","text":"The first four winners of our March Madness Giveaway (4x ADATA Technology (USA) 16GB DashDrives) are:\n\nAaron... http:\/\/t.co\/ikPbfRZQdq","source":"\u003ca href=\"http:\/\/www.facebook.com\/twitter\" rel=\"nofollow\"\u003eFacebook\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":179622147,"id_str":"179622147","name":"Levetron","screen_name":"Levetron","location":"Los Angeles","url":"http:\/\/www.aziocorp.com","description":"Official Twitter for Levetron by AZiO. Here for customer questions, gaming tips & tricks, sharing cool ideas, product launch releases, reviews and more!","protected":false,"followers_count":1042,"friends_count":25,"listed_count":4,"created_at":"Tue Aug 17 18:56:29 +0000 2010","favourites_count":5,"utc_offset":-28800,"time_zone":"Pacific Time (US & Canada)","geo_enabled":false,"verified":false,"statuses_count":707,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"131516","profile_background_image_url":"http:\/\/a0.twimg.com\/images\/themes\/theme14\/bg.gif","profile_background_image_url_https":"https:\/\/si0.twimg.com\/images\/themes\/theme14\/bg.gif","profile_background_tile":true,"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/3223061028\/999ac6efc782d85983cbcf7f2deab7c1_normal.png","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/3223061028\/999ac6efc782d85983cbcf7f2deab7c1_normal.png","profile_banner_url":"https:\/\/si0.twimg.com\/profile_banners\/179622147\/1360294489","profile_link_color":"009999","profile_sidebar_border_color":"EEEEEE","profile_sidebar_fill_color":"EFEFEF","profile_text_color":"333333","profile_use_background_image":true,"default_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"entities":{"hashtags":[],"urls":[{"url":"http:\/\/t.co\/ikPbfRZQdq","expanded_url":"http:\/\/fb.me\/M6YPCk9W","display_url":"fb.me\/M6YPCk9W","indices":[112,134]}],"user_mentions":[]},"favorited":false,"retweeted":false,"possibly_sensitive":false,"filter_level":"medium"}
1)My guess is if this tweet is a result of a retweet then "retweeted" should be true.
But how do i figure out from which user it was retweeted?
2) Is "id" user id or tweet id?
Basically, if lets say I want to analyze how (say) Gangham style went viral.. who retweeted/followed that particular tweet, how should i do this?
Also, has twitter recently changed its api. I am using python for this but looks to me that all of those api's examples are not working
For example: https://github.com/tweepy/tweepy
Any suggestions.
Thanks
Please see the Twitter API documentation relating to tweets. It describes all parameters returned in the Twitter JSON response.
That tweet was not retweeted because retweeted is set to false and retweeted_count is 0.
From the documentation:
id = The integer representation of the unique identifier for this
Tweet.
Retweets can be distinguished from typical Tweets by the existence of
a retweeted_status attribute. This attribute contains a representation
of the original Tweet that was retweeted.
Also, here is a list of supported twitter libraries. There are several other libraries other than tweepy listed that might work for you.

Resources