Terrance / SkPy

An unofficial Python library for interacting with the Skype HTTP API.
https://skpy.t.allofti.me
BSD 3-Clause "New" or "Revised" License
268 stars 66 forks source link

Error 403 when search for contacts #226

Closed dracox76 closed 1 year ago

dracox76 commented 1 year ago

When using Skype.search("whatever"), the library responds with a 403 error from the following URL

403 response from GET https://skypegraph.skype.com/search/v1.1/namesearch/swx/', <Response [403]>)

MS changed the endpoints or the permisions? when i try to browse that URL, it shows that the site can´t be reached.

Terrance commented 1 year ago

Looks like the new endpoint is https://skypegraph.skype.com/v2.0/search, which requires a few extra headers to accept the request (X-Skype-Client, X-SkypeGraphServiceSettings, X-ECS-ETag), but still throws a 403 when given the same auth as Skype for Web. Not immediately clear what the problem is.

lol1990lol1990 commented 1 year ago

I have the same error when trying to search for contacts using mobile number

neodymium001 commented 1 year ago

Hi @Terrance - is it possible to push this change to PyPi?

Terrance commented 1 year ago

Released in v0.10.6 (PyPI).