ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #23683
Re: Twitter notifications
Ok, here we go:
phablet@ubuntu-phablet:~$ account-console login 4 --service
com.ubuntu.developer.webapps.webapp-twitter_webapp-twitter
{'TokenEndpoint': 'https://api.twitter.com/oauth/access_token',
'RequestEndpoint': 'https://api.twitter.com/oauth/request_token',
'Callback': 'https://wiki.ubuntu.com/', 'AuthorizationEndpoint':
'https://api.twitter.com/oauth/authorize', 'ConsumerKey': <SNIP>,
'ConsumerSecret': <SNIP>}
Got reply: {'user_id': <SNIP>, 'screen_name': <SNIP>, 'ScreenName':
<SNIP>, 'oauth_token': <SNIP>, 'UserId': <SNIP>, 'AccessToken': <SNIP>,
'x_auth_expires': '0', 'oauth_token_secret': <SNIP>, 'TokenSecret': <SNIP>}
phablet@ubuntu-phablet:~$ account-polld
2017/03/14 22:53:36 Received unkown method call on
org.freedesktop.DBus.Introspectable Introspect
2017/03/14 22:53:36 Received Poll()
2017/03/14 22:53:44 Creating plugin for service: google-caldav
2017/03/14 22:53:44 Creating account with id 1 for google-caldav
2017/03/14 22:53:44 Starting poll for account 1
2017/03/14 22:53:44 Polling account 1
2017/03/14 22:53:44 calendar: Check calendar changes for account:1
2017/03/14 22:53:44 Creating plugin for service:
com.ubuntu.developer.webapps.webapp-twitter_webapp-twitter
2017/03/14 22:53:44 Creating account with id 4 for
com.ubuntu.developer.webapps.webapp-twitter_webapp-twitter
2017/03/14 22:53:44 Starting poll for account 4
2017/03/14 22:53:44 Polling account 4
2017/03/14 22:53:44 calendar: Number of calendars for account:1 size:1
2017/03/14 22:53:44 calendar: <SNIP>=Google Id: <SNIP>: last sync
date: 2017-03-08T17:56:35Z
2017/03/14 22:53:44 calendar: Found no calendar updates for account:
1 calendar: <SNIP>
2017/03/14 22:53:44 Poll for account 1 was successful
2017/03/14 22:53:44 Ending poll for account 1
2017/03/14 22:53:45 Poll for account 4 was successful
2017/03/14 22:53:45 Ending poll for account 4
Is it just me, or does it look like we're getting a lot of successes for
something that is not working?
Once again, thank you for the follow up!
Francisco
On 13-03-2017 12:05, Alberto Mardegan wrote:
Thanks Francisco!
On 13/03/2017 14:06, Francisco Pina Martins wrote:
Here it is:
[...]
Settings for com.ubuntu.developer.webapps.webapp-twitter_webapp-twitter
enabled: True (<class 'bool'>)
And I now realized that I made a typo in my first message!
The proper command is:
account-console login <number> --service \
com.ubuntu.developer.webapps.webapp-twitter_webapp-twitter
And one more thing I will need is this: temporarily disable the GMail
webapp and Dekko from the Google account and run this:
stop account-polld
account-polld
While this is running, open another phablet-shell connection and type this:
gdbus call --session -d com.ubuntu.AccountPolld -o
/com/ubuntu/AccountPolld -m com.ubuntu.AccountPolld.Poll
Then you can close this second session, and in the first one you should
see some output which I'd like you to forward here.
To return your phone to normal operations, press Ctrl+C and then run:
start account-polld
and remember to re-enable the GMail and Dekko apps in the Google
account, if you disabled them.
Ciao,
Alberto
References