google plus - moment.insert from python code -


i testing g+ api in order post moment visible on user timeline. python code i'm using:

creds = storagebykeyname(credentials, '##myid##', 'credentials').get()         plus_service = util.create_service('plus', 'v1', creds)          moment = {"type":"http://schemas.google.com/addactivity",         "target": {         "id": "target-id-1",         "type":"http://schemas.google.com/addactivity",         "name": "the google+ platform",         "description": "a page describes how awesome google+ is!",         "image": "https://developers.google.com/+/plugins/snippet/examples/thing.png"                 }         }         google_request = plus_service.moments().insert(userid='##myid##', collection='vault', body=moment)         result = google_request.execute() 

where ##myid## google id user following response:

{u'id': u'eg0xmzc2ntuxntu3ndkwgjxv34n_2r7nkticebrcbxi-ptg5vw1kepjcm5xkzrfhskj91syveya', u'kind': u'plus#moment', u'type': u'http://schemas.google.com/addactivity', u'target': {u'name': u'the google+ platform', u'kind': u'plus#itemscope', u'id': u'target-id-1', u'image': u'https://developers.google.com/+/plugins/snippet/examples/thing.png', u'description': u'a page describes how awesome google+ is!'}, u'result': {u'kind': u'plus#itemscope'}} 

i got no error cannot see in user g+ profile or activities. doing wrong? supposed see activity?

moreover, if ask list of activities such as:

result = plus_service.moments().list(userid='##myid##', collection='vault').execute()

i can see posted activities still nothing on g+ account.

thanks in advance

if go profile -> about there should section towards bottom of profile title apps. app should appear here under name gave in developer's console. can click on name of app , see moments sent app.

you can list, manage authorizations, via https://plus.google.com/apps


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -