Google API Link Rejected Key - api

I got an API key from Google and then submitted it with this link:
https://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=<Google API Key>
Obviously, I had my actual key filled in.
The message that came back was:
<GeocodeResponse>
<status>REQUEST_DENIED</status>
<error_message>The provided API key is expired.</error_message>
</GeocodeResponse>
How could the key be expired when I had just generated it?

Related

HMAC vs BCrypt for Api Key encruption

I am designing an Api for a client and trying to keep it very basic. Instead of using an external library for the first iteration, we will be setting up an Api Key and allowing users to hit the endpoint with the key and their user id. The endpoint contains an ability that I want to keep hidden from vulnerable attacks, therefore I am thinking of treating the user id and Api key as a username/password for authentication. The key will be encrypted and stored in the database and when the user sends the headers over they will send the user id and api key over to be verified against. That all leads to the question below:
Is BCrypt too heavy of an encryption to authenticate an api endpoint against?

binance API : signature for this request is not valid

I am trying to get access to this endpoint
https://binance-docs.github.io/apidocs/spot/en/#query-order-user_data
As you can see it says that signature for this request is not valid, why is that ?
Signature value is secret key binance given to me.
https://testnet.binance.vision/
you can create api key and secret key using above link fast and see if it works for you.
please show me what i am doing wrong and advance thanks!

Updating spreadsheet with API Key

I need to update a spreadsheet cell but via API Key instead of OAUTH but even using the Google API explorer, the result is 401 - "Request is missing required authentication credential..." It's possible to assign access right to the spreadsheet so that I can keep using API KEY? Or it's definitively impossible to update via API KEY?

Invalid MailChimp API Key in Mailchimp Export API

I have everything ok in the Mailchimp account but still facing the following problem -
Type the URL - http://us1.api.mailchimp.com/export/1.0/list/?apikey=mykey-us6&id=myid
Output -
{"error":"Invalid MailChimp API Key: mykey","code":104}
This error occurs if you don't use the correct URL.
If your API key ends with "us9" the URL to be called is "http://us9.api.mailchimp.com/export/1.0/list/?apikey=yourkey-us6&id=yourid"
If the URL you have added in the question to work, you should add an API key ending "us1"

Tumblr API - OAuth issues: OAuth verifier and RESTConsole

Trying to obtain blog followers using Tumblr's API and RESTConsole in Chrome (not building an app, just want to check a request response).
I'm new to Tumblr's API and to RESTConsole, so two sources of possible error here.
I've already ...
Registered an app on Tumblr, receiving OAuth Consumer Key and Secret Key in the process.
Entered into REST Console my target: http://api.tumblr.com/v2/blog/{blogname}.tumblr.com/followers
Entered into REST Console's "Setup oAuth" window my OAuth Consumer Key and Secret Key, along with Tumblr's Request Token URL, Access Token URL and Authorize URL.
Approved read/write access to my application when prompted by Tumblr.
Entered the provided Token Key and Token Secret into REST Console's oAuth window.
When I attempt GET requests for follower counts (on my own blog or others'), Tumblr returns 401, "Not Authorized." My blog's preferences page lists the application I'm trying to use as having access.
I've tried this placing base-hostname:{blogname}.tumblr.com in REST Console's request parameters fields; I receive the same error. I tried running a different OAuth method from Tumblr's API (queued posts) and receive the same error.
Help?
Thanks. Let me know if this isn't clear.
Edit: Sorry, meant to add -- I think I may need Oauth Verifier. I haven't been able to find this token, or understand how to obtain it.
Edit (2): So, turns out Tumblr's API needs a comma separator from the REST Console. Thanks all.
''
Zack
$conskey = "CONSUMER KEY";
$conssec = "CONSUMER SECRET";
$tumblr_blog = "myblog.tumblr.com";
$to_be_posted = "This is the text to be posted";
$oauth = new OAuth($conskey,$conssec);
$oauth->fetch("http://api.tumblr.com/v2/user/following", array('offset'=>0) ,OAUTH_HTTP_METHOD_GET);
$result = json_decode($oauth->getLastResponse());
foreach($result->response->blogs as $key){
echo $key->url;
}
The code above will retrieve your followers list.
Hope this helps.