python - Send message to web skype group via a Guest account -


i'm working on guest account bot joinable skype url's. example (join.skype.com/xxxxxxxxxxxxxxxx)

i can connect chat using post request, can't post message group. can see here: http://prntscr.com/d6k5e6 connects, when try send messsage, returns 403.

msgid = int(time.time()*1000)  url3 = "https://client-s.gateway.messenger.live.com/v1/users/me/conversations/" + identifier + "/messages" headers3 = {'user-agent': 'mozilla/5.0 (windows nt 6.1; wow64; rv:40.0) gecko/20100101 firefox/40.1', 'content-type': 'application/json',         'host': 'client-s.gateway.messenger.live.com', 'accept': 'application/json, text/javascript', 'accept-language': 'en-us,en;q=0.5',         'accept-encoding': 'gzip, deflate, br', 'clientinfo': 'os=windows; osver=7; proc=win32; lcid=en-us; devicetype=1; country=n/a; clientname=skype.com; clientver=908/1.67.0.38//skype.com',         'cache-control': 'no-cache, no-store, must-revalidate', 'pragma': 'no-cache', 'expires': '0',         'referer': 'https://web.skype.com/en/guest', 'connection': 'keep-alive'}  msgid = '"%s"'%msgid  json2 = ordereddict() json2['content'] = 'lol test' json2['messagetype'] = 'richtext' json2['contenttype'] = "text" json2['has-mentions'] = 'false' json2['imdisplayname'] = data['name'] json2['clientmessageid'] = msgid msg_data = json.dumps(json2)  r2 = requests.post(url3, data=msg_data, headers=headers3) print r2 

i used site documentation: https://skpy.t.allofti.me/protocol/login.html. it's down right use cached version of it.

if mimic i'm doing , record message headers selves see i'm doing wrong send message, appreciate it.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -