Long polling never returning anything
I have setup the following Python :
response = client.make_request('GET', 'https://api.box.com/2.0/events?stream_position=now').json()
print(str(response))
stream_position = response['next_stream_position']
response = client.session.options('https://api.box.com/2.0/events').json()
print(str(response))
stream_url = response['entries'][0]['url']
print(str(stream_url))
current_stream_url = stream_url + u'&stream_position=' + unicode(stream_position)
print(str(current_stream_url))
response = client.session.get(current_stream_url).json()
print(str(response))
It just sits at the last get and never returns anything.
The app has been authenticated and given all access
I have even re-written to impersonate our box admin account and it still returns nothing, even when I have gone in as the same user and deleted or created a file in web console.
I feel as if I am missing something very easy. Any help is appreciated!
サインインしてコメントを残してください。
コメント
0件のコメント