Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. require 'markdown_notes'
  2.  
  3. include MarkdownNotes
  4.  
  5. client = MarkdownNotesClient.new(
  6. o_auth_client_id: 'YOUR_CLIENT_ID',
  7. o_auth_client_secret: 'YOUR_CLIENT_SECRET',
  8. o_auth_username: 'YOUR_OAUTH_USERNAME',
  9. o_auth_password: 'YOUR_OAUTH_PASSWORD'
  10. )
  11.  
  12. controller = client.note
  13.  
  14. client.auth.authorize(scope: OAuthScope::READ_NOTE)
  15. puts controller.list_notes.inspect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement