Skip to content

Instantly share code, notes, and snippets.

@AkashMartin1
Created June 30, 2015 11:55
Show Gist options
  • Save AkashMartin1/819a7f8599f19d8f6b41 to your computer and use it in GitHub Desktop.
Save AkashMartin1/819a7f8599f19d8f6b41 to your computer and use it in GitHub Desktop.

Revisions

  1. AkashkumarDev renamed this gist Jun 30, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. AkashkumarDev created this gist Jun 30, 2015.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    @google_api_client = Google::APIClient.new(
    application_name: 'Example',
    application_version: '1.0.0Alpha'
    )
    @google_api_client.authorization.access_token = user.google_token
    @gmail = @google_api_client.discovered_api('gmail', 'v1')