This is the code I have so far where get_url is a helper function that wraps the url with the subscription proxy url that forwards the notifications to some dummy server I hate setup.
card = {
'text': 'click ok',
'menuItems': [{
'action': 'CUSTOM',
'id': 'ready',
'values': [{
'displayName': 'o',
'iconUrl': 'img.jpg'
}]
}],
}
self.mirror_service.timeline().insert(body=card).execute()
callback_url = get_url(self, '/start')
body = { # self.userid is initialized in util.auth_required.
'collection': self.request.get('collection', 'timeline'),
'userToken': self.userid,
'callbackUrl': callback_url
}
I confirmed that the subscription is created (using the list
call) but when I click the menu item in the glass playground my proxy server isn't seeing any notify requests. Any tips?