mirror of
https://github.com/jlengrand/picasa.git
synced 2026-03-10 08:31:19 +00:00
Put back callback in access token
This commit is contained in:
@@ -4,8 +4,10 @@ const Picasa = require('../.')
|
||||
const config = require('./config')
|
||||
|
||||
// Second step
|
||||
const code = '4/etTOs_1FbU0vFqKFoX5IV9xe7z0Q5IBZICy0m1iGMNI'
|
||||
const code = '4/AAArsRhVP1HOfPmnh0dOqxMB7SfPAWE8roAI9JTHaKi6Q9qtCCPdhxh0HOwejQf7aEFNYMgLfaeaN95wjMVBWI0'
|
||||
|
||||
const picasa = new Picasa(config)
|
||||
|
||||
picasa.getAccessToken(config, code).then(console.log).catch(console.log)
|
||||
picasa.getAccessToken(config, code, (error, accessToken) => {
|
||||
console.log(error, accessToken)
|
||||
})
|
||||
Reference in New Issue
Block a user