Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese problem (yinxiang.com) #20

Closed
zsytssk opened this issue May 4, 2014 · 6 comments
Closed

Chinese problem (yinxiang.com) #20

zsytssk opened this issue May 4, 2014 · 6 comments

Comments

@zsytssk
Copy link

zsytssk commented May 4, 2014

I'm a chinese. Evernote use app.yinxiang.com in China, open www.evernote.com very slow in China.I have replaced all 'evernote.com' to 'yinxiang.com' in plugin, and authorized
in https://app.yinxiang.com/api/DeveloperToken.action. It don't work. How can I do.

@bordaigorl bordaigorl changed the title Chiese problem Chinese problem (yinxiang.com) May 4, 2014
@bordaigorl
Copy link
Owner

@zsytssk I can try to make it work but I will need your help (I can't read Chinese!)
From what I can understand of http://dev.yinxiang.com/ it would seem that to connect to the API you do not need to change anything to the yinxiang.com domain, the evernote.com domain should work just fine. Have you tried using the plugin as is and put your developer api token in? What does go wrong?

@bordaigorl
Copy link
Owner

@zsytssk Can you go to
https://app.yinxiang.com/api/DeveloperToken.action
you should (maybe after logging in) be prompted with two pieces of information:

  1. a developer token looking like this

    S=ssss:U=xxxxxx:E=xxxxxxxxxxx:C=xxxxxxxxxxx:P=xxx:A=en-devtoken:V=x:H=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    
  2. and a NoteStore URL that for me looks like

    https://www.evernote.com/shard/ssss/notestore
    

Can you check whether:

  1. the A=en-devtoken bit coincides or you have something else there
  2. the NoteStore URL is in the evernote.com domain or not

@zsytssk
Copy link
Author

zsytssk commented May 5, 2014

I’m a yinxiang user, I must login https://app.yinxiang.com/api/DeveloperToken.action, get
Developer Token.

S=xx:U=xxxxxx:E=xxxxxxxxxxxxx:C=xxxxxxxxxxxxxxxxx:P=xxx:A=en-devtoken:V=2:H=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The NoteStore URL is

https://app.yinxiang.com/shard/xx/notestore.

The sublime error message is ‘error getting notebooks: EDAMSystem Exception(errorCode=8, rateLimitDuration=None, message=’authenticationToken)’

@bordaigorl
Copy link
Owner

IMPORTANT: please never share publicly your API key: it grants unrestricted access to your account to anybody possessing it. I deleted the private parts of it in your message but I strongly recommend you revoke the current key and generate a new one from here

As for the question @zsytssk, here's what you have to do to access your account from the plugin:

Go to Preferences > Package Settings > Evernote > Settings - User. You will probably find two keys there token and noteStoreUrl (if not create them). Set their values as follows:

"noteStoreUrl": " http://app.yinxiang.com/shard/xx/notestore", // your notestore url here with https -> http
"token": "S=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // your API key here as is

That is the only change you need to do, the code of the plugin can remain the same as the official one. The only thing you need to set manually is the noteStoreUrl key in the settings taking care of changing https to http.

I will document this in the wiki later and try to see if I can integrate support for yinxiang.com in the official plugin.

Can you please report back if this works for you?

@bordaigorl
Copy link
Owner

I updated the wiki with detailed instructions.
https://github.com/bordaigorl/sublime-evernote/wiki/First-Use#a-note-for-chinese-users-yinxiangcom
Maybe it would be more useful to have instructions in Chinese?
@zsytssk would you be so kind to translate the instructions in Chinese in the wiki?

@zsytssk
Copy link
Author

zsytssk commented May 6, 2014

翻译


中国印像笔记用户(app.yinxiang.com)

插件里面应用授权(Reconfigure Authorization)是面向Evernote International用户,

如果你是中国印像笔记用户(app.yinxiang.com)用户,此插件同样适用,
只需做以下修改:

  1. https://app.yinxiang.com/api/DeveloperToken.action登陆获取应用授权
  2. 你将获得Developer Token和NoteStore URL
  3. 打开sublime Evernote插件设置文件 Preferences > Package Settings > Evernote > Settings - User
  4. 将上面获取到的信息复制到对应的地方, 格式是:
    {
    "noteStoreUrl": "你的NoteStore URL",
    "token": "你的Developer Token"
    }
  5. 保存设置文件, 你的印象笔记也能正常工作了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants