Jump to content

Search the Community

Showing results for tags 'oauth'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Calendars

  • Community Event Calendar
  • Evernote Events

Forums

  • General Discussion
    • Community Announcements
    • Evernote General Discussions
    • Evernote Integrations
    • Evernote Betas
    • Evernote API Discussion
  • FAQ's: Best Answers
    • FAQ's: Best Answers
  • Possible Bugs/Technical Issues
    • General Technical Issues
    • Evernote Business
    • Evernote for Android
    • Evernote for iOS
    • Evernote for Mac
    • Evernote for Windows
    • Web Client
    • Evernote Product Suite
  • Product Feedback/Feature Requests
    • General Feature Requests
    • Evernote Business
    • Evernote for Android
    • Evernote for iOS
    • Evernote for Mac
    • Evernote for Windows
    • Evernote Web Client
    • Evernote Product Suite
  • International Forums
    • Japanese Discussions
    • Brazilian Portuguese Discussions
    • Discussions in Spanish
    • Korean Discussions
    • Traditional Chinese Discussions
  • Evernote Preview Program
  • Evernote Forum Archives

Blogs

There are no results to display.

There are no results to display.

Categories

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Subscription

Found 11 results

  1. I'm writing a chrome extension for quick search notes in fuzzy match model. So I need to cache all notes' metadata(title, url, createdTime,etc) in local storage. According to evernote offical doc, there are two ways to authenticate to the Evernote API, developer tokens and OAuth. But right now, 1. developer token has been deprecated.(if you go to the application URL you will get Update: the creation of developer tokens is temporarily disabled. 2. OAuth can only access one specific notebook(depend on user authentication) So my question is : is there anyway can work around to get all notes' metadata?
  2. When making a call to authorize we are getting an unexpected error. I am using the following CURL command with sample data because I do not have the sdk installed. What is this error? I have highlighted the confusing response. This is HTML for the page that is displayed that says 'Oops we encountered unexpected error' I get the same thing when i just enter the url into a browser Kellys-MacBook-Pro:~ kellygold$ curl -X GET 'https://sandbox.evernote.com/oauth?oauth_callback=http://cloud-elements.com&oauth_consumer_key={myapike}&oauth_nonce=3166905818410889691&oauth_signature=xCYjTiyz7GZiElg1uQaHGQ6I&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1496264535&oauth_version=1.0' <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" href="/redesign/global/css/reset.css" /> <link rel="stylesheet" href="/redesign/global/css/fonts.css" media="all" /> <link rel="stylesheet" href="/redesign/global/css/header.css" /> <link rel="stylesheet" href="/redesign/global/css/layout.css" /> <title>Evernote Error</title> </head> <body> <div class="header"> <div class="header-inner"> <a href="https://sandbox.evernote.com/Home.action?/" class="evernote-logo">Evernote</a></div> </div> <div id="container-boundingbox" class="wrapper"> <div id="container" class="wrapper"> <div class="main"> <div class="page-header"> <h1> Oops, we encountered an error.</h1> </div> <div> <p> Sorry, we've encountered an unexpected error.</p> </div> <div class="clear"></div> </div> </div> <div class="footer wrapper"> <a href="https://sandbox.evernote.com/Home.action?/tos/" class="footer-entry">Terms of Service</a><a href="https://sandbox.evernote.com/Home.action?/privacy/" class="footer-entry">Privacy Policy</a><span class="footer-entry last">Copyright 2017 Evernote Corporation. All rights reserved.</span> </div> </div> </body> </html>
  3. Hi all, I just started having a look at the evernote developer guide, but I am struggling to understand if and how it is possible to send the text stored in an HTML5 input to evernote through OAuth. Is it possible in pure javascript or do I need a backend script? Did someone of you already implemented it? All the best, Christian
  4. I am getting " Oops, we encountered an error. Sorry, we've encountered an unexpected error." when I try to get Access token. I followed https://dev.evernote.com/doc/articles/authentication.php the steps in it. In third step I'm unable to get access token. Is my link correct? I'm using Postman! https://sandbox.evernote.com/oauth?oauth_consumer_key=ZZZZZZZ&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1474958755&oauth_nonce=FFdKTf&oauth_version=1.0&oauth_signature=fCHbZv+j88ZFF9ptfZQqcTmTUnQ=&oauth_token=YYYYYYYY&oauth_verifier=XXXXXX
  5. お世話になります。 javascriptを用いて、evernoteアプリを開発しています。 サンドボックス環境ではきちんとトークンが取得できるのですが、プロダクション環境(本番環境)ではトークンが取得できず、困っております。 具体的には、Evernoteのサイト(https://dev.evernote.com/intl/jp/doc/start/javascript.php)からリンクを貼られていたサンプルコード(https://github.com/evernote/phonegap-example/blob/master/HelloWorld/www/js/index.js)をほぼそのまま流用しています。 サンドボックス環境では、トークンが取得できるのですが、プロダクション環境ではそれができません。 具体的には、ユーザー名とパスワードを入力する画面が現れ、承認ボタンを押すことができるのですが、その後、添付の画面に移り、結局トークンが取得することができません。 サンドボックス環境からプロダクション環境に移るに当たり変更したことは、evernotehostnameを、「https://sandbox.evernote.com」から「http://www.evernote.com」に変更しただけです。 サンドボックス環境では動くにもかかわらず、本番環境では動かず、困っております。2つは全く同じ環境だと思っていたのですが、何かが違うのでしょうか。 もし、改善案がお分かりの方がいらっしゃったら、情報提供いただけないでしょうか。 よろしくお願い申し上げます。
  6. Hello friends, I am working on a Java project in which we would wish to provide Evernote functionality for our app in which we could sync notes, attachments, etc to & fro Evernote. For this to work, I would like to authenticate against Evernote server and then persist the tokens in our database so we can provide services even when user is not logged into Evernote. To achieve this, I have added Scribe library and Evernote java SDK in POM.xml. Unfortunately, I am unable to find any examples of how is the mechanism to authenticate against the server and then which tokens are sent from evernote, which ones are for future usage. I am unable to find documentation for the same. I have some code which worked with a developer token, and only a patch of OAuthService. Can someone help me the authentication mechanism and which tokens to save and later consume? Please note, I am using Spring-MVC as a platform. Developer token code : EvernoteAuth evernoteAuth = new EvernoteAuth(EvernoteService.SANDBOX, AUTH_TOKEN); ClientFactory factory = new ClientFactory(evernoteAuth); userStore = factory.createUserStoreClient(); boolean versionOk = userStore.checkVersion("Evernote EDAMDemo (Java)", com.evernote.edam.userstore.Constants.EDAM_VERSION_MAJOR, com.evernote.edam.userstore.Constants.EDAM_VERSION_MINOR); if (!versionOk) { System.err.println("Incompatible Evernote client protocol version"); System.exit(1); } // Set up the NoteStore client noteStore = factory.createNoteStoreClient(); System.out.println("Listing notes:"); // First, get a list of all notebooks List<Notebook> notebooks = noteStore.listNotebooks(); for (Notebook notebook : notebooks) { System.out.println("Notebook: " + notebook.getName()); // Next, search for the first 100 notes in this notebook, ordering // by creation date NoteFilter filter = new NoteFilter(); filter.setNotebookGuid(notebook.getGuid()); filter.setOrder(NoteSortOrder.CREATED.getValue()); filter.setAscending(true); NoteList noteList = noteStore.findNotes(filter, 0, 100); List<Note> notes = noteList.getNotes(); for (Note note : notes) { System.out.println(" * " + note.getTitle()); } } System.out.println(); Authentication code : @Override public void checkOutEverNote() throws Exception { OAuthService service = new ServiceBuilder() .provider(EvernoteApi.Sandbox.class) .apiKey(CLIENT_KEY) .apiSecret(CLIENT_SECRET) .callback("http://localhost:8080/recievetoken") .build(); Token requestToken = service.getRequestToken(); String authUrl = service.getAuthorizationUrl(requestToken); }
  7. Hello friends, I am working on integrating Evernote with our webapp which is Spring-MVC based. The main purpose I have is the user can sync data between Evernote and our webapp. Now, to achieve this, I must connect and authenticate with Evernote. To achieve this, I am unable to find any Java based samples. I only found https://github.com/evernote/evernote-sdk-java/blob/master/sample/oauth/src/main/webapp/index.jsp , which is a JSP file. I don't even understand why the developers today are putting Java code inside JSP. It's not even recommended. I don't want to use that approach and whenever I look for some OAuth code, I can only find only portions of code posted by other users like https://discussion.evernote.com/topic/32566-oauth-and-java-some-help-needed/ Is there anyone out there who has some useful code with Java, and suitable for Spring environment where I can call methods in Controller and authenticate, and after redirect I can process data. These are the tokens I have, developer token, NoteStore URL, Consumer Key, Consumer Secret. Here is my code till now : Controller :@Controllerpublic class EverNoteController extends MasterController{ @RequestMapping(value = "/tryevernote") public String tryEverNote() throws Exception { this.localEvernoteService.tryEverNote(); return "redirect:/dashboard"; }}Service Layer :@Service@Transactionalpublic class LocalEvernoteServiceImpl implements LocalEvernoteService { private UserStoreClient userStore; private NoteStoreClient noteStore; private String newNoteGuid; @Override public void tryEverNote() throws Exception{ EvernoteAuth evernoteAuth = new EvernoteAuth(EvernoteService.SANDBOX, AUTH_TOKEN); ClientFactory factory = new ClientFactory(evernoteAuth); userStore = factory.createUserStoreClient(); boolean versionOk = userStore.checkVersion("Evernote EDAMDemo (Java)", com.evernote.edam.userstore.Constants.EDAM_VERSION_MAJOR, com.evernote.edam.userstore.Constants.EDAM_VERSION_MINOR); if (!versionOk) { System.err.println("Incompatible Evernote client protocol version"); System.exit(1); } // Set up the NoteStore client noteStore = factory.createNoteStoreClient(); System.out.println("Listing notes:"); // First, get a list of all notebooks List<Notebook> notebooks = noteStore.listNotebooks(); for (Notebook notebook : notebooks) { System.out.println("Notebook: " + notebook.getName()); // Next, search for the first 100 notes in this notebook, ordering // by creation date NoteFilter filter = new NoteFilter(); filter.setNotebookGuid(notebook.getGuid()); filter.setOrder(NoteSortOrder.CREATED.getValue()); filter.setAscending(true); NoteList noteList = noteStore.findNotes(filter, 0, 100); List<Note> notes = noteList.getNotes(); for (Note note : notes) { System.out.println(" * " + note.getTitle()); } } System.out.println(); } @Override public void checkOutEverNote() throws Exception { }}Any help would be appreciated.
  8. python-oauth2を使ってOAuthアクセストークン(トークンクレデンシャル)を取得したいのですが、"Sorry, we've encountered an unexpected err"となり、うまくいかずに困っております。 以下にソースを書きます。 import oauth2 import urlparse # アクセストークン要求URI ACCESS_TOKEN_URL='https://sandbox.evernote.com/oauth' CONSUMER_KEY=コンシューマキー CONSUMER_SECRET=コンシューマシークレット REQUEST_TOKEN=リクエストトークン OAUTH_VERIFIER=ベリファイア(上記リクエストトークンでOAuth承認時に取得したもの) consumer=oauth2.Consumer(key=CONSUMER_KEY, secret=CONSUMER_SECRET) token=oauth2.Token(REQUEST_TOKEN, '') token.set_verifier(OAUTH_VERIFIER) client=oauth2.Client(consumer, token) client.set_signature_method(oauth2.SignatureMethod_PLAINTEXT()) resp, content=client.request(ACCESS_TOKEN_URL, "POST") access_token=dict(urlparse.parse_qsl(content)) print access_token; print 'Access Token: %s' % access_token['oauth_token'] print 'Access Token Secret: %s' % access_token['oauth_token_secret'] なお、リクエストトークン(一時クレデンシャル)はpython-oauth2で取得出来ています。 不足や間違った処理、別な方法など、ございましたら教えてください。
  9. 現在Webアプリをサンドボックスで制作中です。 OAuth時の権限でフルアクセスになっていない(申し込みの時にはフルアクセスにした気がするのですが・・・)ので変更したいのですが、どこから変更できますでしょうか。 初歩的な質問で恐縮ですがよろしくお願いします。
  10. Hello, I'm trying to run the oauth samples given on https://github.com/evernote/evernote-sdk-php on my localhost. But, I'm getting this error on step 1: Error obtaining temporary credentials: making the request failed (Peer certificate cannot be authenticated with given CA certificates) I've gone through the thread http://discussion.evernote.com/topic/24391-im-having-a-problem-to-use-oauth-in-php/ and tried to use the statement: $oauth->disableSSLChecks(); in the getRequestToken() and getAccessToken() functions in Client.php. But, it still throws the same error. And I've not been able to find the variables NOTESTORE_PORT or NOTESTORE_PROTOCOL (the thread suggested to change these variables) in the config.php file. I'm using XAMPP(with PHP 5.4.7) on Windows 7. Kindly help me with this. Thanks in advance, Vishal
  11. After spending a few hours searching, reading and looking at code, I do not quite see how to implement authentication via OAuth. I found this code from Google: http://code.google.com/p/gtm-oauth/ ... but I can not make it work for Evernote. Please anyone knows of some sample code or guide that could help me with this. Thank you
×
×
  • Create New...