{"action":"created","issue":{"url":"https://api.github.com/repos/googlesamples/apps-script-oauth1/issues/17","labels_url":"https://api.github.com/repos/googlesamples/apps-script-oauth1/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/apps-script-oauth1/issues/17/comments","events_url":"https://api.github.com/repos/googlesamples/apps-script-oauth1/issues/17/events","html_url":"https://github.com/googlesamples/apps-script-oauth1/issues/17","id":120395225,"number":17,"title":"schedule twitter","user":{"login":"YiuriV","id":6714529,"avatar_url":"https://avatars.githubusercontent.com/u/6714529?v=3","gravatar_id":"","url":"https://api.github.com/users/YiuriV","html_url":"https://github.com/YiuriV","followers_url":"https://api.github.com/users/YiuriV/followers","following_url":"https://api.github.com/users/YiuriV/following{/other_user}","gists_url":"https://api.github.com/users/YiuriV/gists{/gist_id}","starred_url":"https://api.github.com/users/YiuriV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YiuriV/subscriptions","organizations_url":"https://api.github.com/users/YiuriV/orgs","repos_url":"https://api.github.com/users/YiuriV/repos","events_url":"https://api.github.com/users/YiuriV/events{/privacy}","received_events_url":"https://api.github.com/users/YiuriV/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-04T12:47:32Z","updated_at":"2015-12-04T13:54:37Z","closed_at":"2015-12-04T12:51:58Z","body":"Hi, I'm using this library to connect my google spreadsheet with twitter so I can schedule my tweets. I have a function that authorizes my app. Then I schedule my tweets and use a trigger to send out the tweets. However, in the function that sends them out, I somehow have to get such a oauth object without going through the whole authenticating process again. Can someone help me with this? "},"comment":{"url":"https://api.github.com/repos/googlesamples/apps-script-oauth1/issues/comments/161973178","html_url":"https://github.com/googlesamples/apps-script-oauth1/issues/17#issuecomment-161973178","issue_url":"https://api.github.com/repos/googlesamples/apps-script-oauth1/issues/17","id":161973178,"user":{"login":"erickoledadevrel","id":991384,"avatar_url":"https://avatars.githubusercontent.com/u/991384?v=3","gravatar_id":"","url":"https://api.github.com/users/erickoledadevrel","html_url":"https://github.com/erickoledadevrel","followers_url":"https://api.github.com/users/erickoledadevrel/followers","following_url":"https://api.github.com/users/erickoledadevrel/following{/other_user}","gists_url":"https://api.github.com/users/erickoledadevrel/gists{/gist_id}","starred_url":"https://api.github.com/users/erickoledadevrel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erickoledadevrel/subscriptions","organizations_url":"https://api.github.com/users/erickoledadevrel/orgs","repos_url":"https://api.github.com/users/erickoledadevrel/repos","events_url":"https://api.github.com/users/erickoledadevrel/events{/privacy}","received_events_url":"https://api.github.com/users/erickoledadevrel/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T13:54:37Z","updated_at":"2015-12-04T13:54:37Z","body":"Yes, you should just call the oAuth() function again. It doesn't automatically trigger the OAuth flow, and service.hasAccess() should be true."}}