/php-evernote-dailylogs

A simple demo that creates Evernote notes using the evernote's developer token. I use this script with linux cronb to create dairy titled as "YYYY/MM/DD 星期X"

Primary LanguagePHP

php-evernote-dailylogs

A simple demo that creates Evernote notes using the evernote's developer token. I use this script with linux crontab to create daily dairy titled as "YYYY/MM/DD 星期X"

Attention:

Developer tokens are available for the Evernote sandbox and production services. But in this case,the codes are for the production service.

##PHP Side

###1 Get Your Developer Token

For Evernote International(国际版用户):https://www.evernote.com/api/DeveloperToken.action

For Evernote China(印象笔记用户):https://dev.yinxiang.com/doc/articles/dev_tokens.php

###2 Replace the token $token = 'REPLACE YOUR TOKEN HERE';

$sandbox = false; //SET THE ENV TO PRODUCTION SERVICE

$china   = true; //印象笔记用户:true International User:false

###3 Upload to your Server


##Server Side

###1 Make sure PHP installed

###2 Execute create.php

Execute create.php on your server and check your evernote default notebook.

###3 Create a shell script

#!/bin/bash
#etc:php /data/nornor/evernote-dairy/create.php
php "your php location"

###4/Add to Crontab

crontab -e

30 5 * * * /data/nornor/evernote-dairy/evernote-auto.sh