Hello Seth,
Where can I get the client key?
The details I'm using are the one sent in "
Evernote API Key" email you guys are sending. Using these details I want to use the UserStore.authenticate but it doesn't work at all.
Here is the test code (Nodejs + evernode):
var thrift = require('thrift'),
evernode = require('evernode'),
customConnections = evernode.customConnections,
UserStore = evernode.UserStore;
var user_connection = customConnections.createHTTPSConnection( 'sandbox.evernote.com', 443, '/edam/user' );
var user_client = thrift.createClient( UserStore, user_connection );
user_client.authenticate(
'alexdeefuse'
, 'my password'
, 'alexdeefuse'
, 'secret goes in here'
, function(err, res){
if(err) {
console.log(err);
}else{
console.log(res);
}
}
);
The code above, when running with node returns:
{ name: 'EDAMUserException',
errorCode: 8,
parameter: 'consumerKey' }I did test it out with AS3 as well:
var r:URLRequest = new URLRequest();
r.url = 'http://sandbox.evernote.com/edam/user';
var client :THttpClient = new THttpClient( r, true );
var protocol :TBinaryProtocol = new TBinaryProtocol( client );
var user_store:UserStore = new UserStore( protocol, protocol );
user_store.authenticate(
'alexdeefuse',
'my password',
'alexdeefuse',
'my secret',
authenticate_successHandler,
authenticate_errorHandler
);
The AS3 version returns:
EDAMUserException(errorCode:INVALID_AUTH (8), parameter:consumerKey)
Regards,
Alex