Resolve Yahoo Fantasy Football API Internal server error - yahoo

I wrote a Yahoo fantasy football skill that does things like: get team status, replace injured starters, get weekly matchup, and get leauge standings. It uses OAuth2 and the Yahoo API to get a Yahoo user's leagues and teams. It works great for some accounts, but for some accounts the below request responds with a 500 error.
GET https://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/teams
<?xml version="1.0" encoding="UTF-8"?>
<error xml:lang="en-us" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/team"xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://www.yahooapis.com/v1/base.rng">
<description>Server Error</description>
<detail />
</error>
How can I fix this?

I found a work around using:
GET https://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/games/teams
I just have to filter by season.

In case anyone else ends up here, I ran into this issue and it seems that Yahoo has basically silently deprecated / removed support for oauth, so you have to switch to oauth2 to in order to use many of their APIs.
Source

Related

My Google API keeps returning a limit reached error, when I am sure I am under the limit

I am currently building a NodeJS backend app that is querying the Google Calendar API. I have setup a new project on Google Cloud API platform and have generated all the required credentials. As stated by the google calendar API page, the allowed queries per day is 1,000,000. Since I am only querying for testing purposes at the moment, I am sure that I haven't even hit a 100. Yet whenever I try to query the API it returns the error:
"The API returned an error: Error: Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
Also I have noticed that the dev console has generated a API key for me. Where am I supposed to put that?
My initial thinking is that Google API requires me to perform an additional signup using some CLI tools or something along those lines to signup. If not, where am I supposed to sign up?
Thanks in advance.
Note: I already have all the information from the cloud platform such as client_id, client_secret, project_id.
In "Error: Daily Limit for Unauthenticated Use Exceeded", they key word is Unauthenticated. Your request to the Calendar API is missing an OAuth Access Token. You will need to research Google OAuth.
This question has been answered many times. Please learn how to search SO for similar questions whenever you post a new question. https://stackoverflow.com/search?q=google+oauth+%22daily+limit+for+unauthenticated%22
To anyone who comes across this post in the future. I fixed the issue by using the project generated by Google Calendar API site (https://developers.google.com/calendar/quickstart/nodejs) by clicked the big blue "Enable the google calendar api" and then changing the name of the quickstart project that was generated. I don't know why it works now but it does and it's been working quite stably so far. Lets see how to goes.

Error fetching Trustpilot reviews using api

I intend to fetch the reviews using the trustilot api as documented in the api link below:
API: https://developers.trustpilot.com/business-units-api#business-unit-private-reviews
However, I have been getting the following error.
{"message":"Access to resource is forbidden","errorCode":1014,"correlationId":"4e77ga75-5fb7-62ab-a71b-0d01acd5cf29"}
I couldn't find much help in google.
What am I missing?
this API endpoint is only available to the paid customers and you have to have the appropriate API key for your account. In case you are a paying Trustpilot customer, pleas

Google Finance api giving 403 error

I am using google finance api for conversion of currency based on real rate conversion,
The API what I am using is given below:
https://finance.google.com/finance/converter?a=1&from=USD&to=INR
It was working till yesterday but from today it's throwing 403 response code.
Can anyone help me on that or Is this url changed??
Thanks
Seems that Google just silently deprecated finance.google.com, redirecting it to google.com/search. Probably better to switch to a more reliable currency exchange rates provider. In my case, I've switched to EU Central Bank.
Finally I found the solution for this with the updated google URL for currency converter.
Click here to check the solution now.
just do update your existing link with this and you can solve your problems.
Thanks
Google finance API is just moved to new URL. You can check the solution here:
Error in Google finance API

SMS service for two-factor authentication in Rails

I have already implemented two-factor authentication using the tinfoil gem in Rails. It's using Google Authenticator to display the verification code to the user.
I would also like to implement sending the verification code to the user via SMS. I am wondering what is the best solution for this?
I have also searched around and found free SMS services for Rails like SMS FU and SMS-easy, but it seems like the gems are not active and they don't support a lot of the UK carriers.
So, should I resort to paid service like twilio?
Twilio developer evangelist here.
For something important like two factor authentication, where you need the messages to arrive or your user cannot log in, then I highly recommend a paid service.
StackOverflow is not exactly the right site to be asking for opinions on this sort of thing, it is more for code issues that can be solved. However, if you are interested in using Twilio for this and you find yourself with any questions about the service, you can contact me directly at philnash#twilio.com.

yahoo stores api authentication

I'm attempting to get order data from a Yahoo store. I'm using the docs found here: http://lib.store.yahoo.net/lib/vw/order-payment-api.pdf
I can't seem to get past authentication. I've got the store id. The store owner has turned on access for me and I've gotten the secret code to add to my xml POST request.
Anyone had any luck doing this? If you have can you help me.
Like magic this started working last weekend. Why? Nobody really knows. I did send yahoo an e-mail complaining but didn't get a response.
Also, while running POSTs I found that preceding your request XML with a space is a bad idea.

Resources