A
A
Andrey Shirshov2016-01-09 12:23:27
PHP
Andrey Shirshov, 2016-01-09 12:23:27

How to make an API key work after registering it with Evernote?

There is a php application that needs to interact with Evernote. I registered an API key and got the answer "We have activated your API key (***) on our production service." In the sandbox, everything works fine, but outside of it, authorization does not work. I call

$oauth_handler->authorize(EVERNOTE_KEY, EVERNOTE_SECRET, $callback);
and get a redirect to https://www.evernote.com/OAuth.action?oauth_token=
an error occurs Missing required oauth parameter "oauth_token"
The problem comes from getTemporaryCredentials()the Evernote SDK for PHP because it doesn't return anything. Curl returns 401 Unauthorized. As a result, one gets the impression that in fact the API key was not registered or it was done incorrectly. But maybe the reason is that I'm doing something wrong.
How to fix it? Evernote technical support is silent for several days (I have a premium), on the Evernote developers forum I asked a question - also silence ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nord_ak, 2019-01-15
@nord_ak

To work on the combat system, you need to activate the key after testing in the sandbox.

Your API key has been actived on our Sandbox development server. This is the server you'll connect to during development and testing. Once your project is ready for production use, you'll need to have your key activated on Evernote's production environment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question