Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

problem in access token


  • Please log in to reply
2 replies to this topic

#1 dipanshu

dipanshu

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 72 posts

Posted 30 July 2012 - 06:32 AM

access token not in session Notice: Undefined variable: authToken in /var/www/sugarcrm/evernote_test/EDAMTest.php on line 74 Please fill in your developer token To get a developer token, visit https://sandbox.ever...perToken.action

if ($authToken!= "S=s1:U=28d41:E=13fd691260c:C=1387edffa0c:P=1cd:A=en-devtoken:H=5a5a36c3a18441dbd20516046d6ff546") {
print "Please fill in your developer token\n";
print "To get a developer token, visit https://sandbox.ever...oken.action\n";
exit(1);
}
these are code of line 74 to78 in EDAMTest.php
i have got this token
but this token is not working



please also see my post in
to solve my problem
http://discussion.ev...er-oauth-token/
http://discussion.ev...-or-a-redirect/

Attached Files



#2 Lil Dre

Lil Dre

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 71 posts

Posted 30 July 2012 - 01:02 PM

You wrote the token in the wrong place.

you must do that like these:

// Real applications authenticate with Evernote using OAuth, but for the
// purpose of exploring the API, you can get a developer token that allows
// you to access your own Evernote account. To get a developer token, visit
// https://sandbox.ever...perToken.action
$authToken = "S=s1:U=28ea2:E=13fe2700b8c:C=1388abedf8c:P=1cd:A=en-devtoken:H=0d5585d160a7823e9f0136fb0d53c3e7";
if ($authToken == "your developer token") {
print "Please fill in your developer token\n";
print "To get a developer token, visit https://sandbox.ever...rToken.action\n";
exit(1);
}

then, you will be successfull to run

#3 dipanshu

dipanshu

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 72 posts

Posted 30 July 2012 - 01:18 PM

I wrote the token in the wrong place.

you must do that like these:

// Real applications authenticate with Evernote using OAuth, but for the
// purpose of exploring the API, you can get a developer token that allows
// you to access your own Evernote account. To get a developer token, visit
// https://sandbox.ever...perToken.action
$authToken = "S=s1:U=28ea2:E=13fe2700b8c:C=1388abedf8c:P=1cd:A=en-devtoken:H=0d5585d160a7823e9f0136fb0d53c3e7";
if ($authToken == "your developer token") {
print "Please fill in your developer token\n";
print "To get a developer token, visit https://sandbox.ever...rToken.action\n";
exit(1);
}

then, you will be successfull to run


i think i have done all these steps which you have told me ..please see my files proper and reply to that

if ($authToken == "S=s1:U=28d41:E=13fd691260c:C=1387edffa0c:P=1cd:A=en-devtoken:H=5a5a36c3a18441dbd20516046d6ff546") {
print "Please fill in your developer token\n";

print "To get a developer token, visit https://sandbox.ever...oken.action\n";
exit(1);




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote