GerryDazoo / Slinger

Reuse SlingBox hardware without SlingBox Servers
175 stars 35 forks source link

How to retrieve memberslingbox details via Postman #399

Closed abarberenaCPDS closed 1 year ago

abarberenaCPDS commented 1 year ago

Discussed in https://github.com/GerryDazoo/Slinger/discussions/389

Originally posted by **rbf121** November 30, 2022 As of 11/30/2022, the Sling APIs to retrieve your memberslingbox details are still online. You can't get them from the original URL we were using but the underlying APIs are still active. You need to call 2 APIs in order to get the memberslingbox details. You can use Postman to create the 2 required requests. **Request 1:** POST https://secure.sling.com/slingaccounts/rest/v3/identitypoint?contentType=application/json Under Body select x-www-form-urlencoded Enter following key / values | key | value | | - | - | | context | SLINGIT_PORTAL | | policy_code | MAS | | email_address | {user-email} | | password | {user-password} | Hit send. If it worked, you should get a 200 OK with JSON response. Save the identity and ticket from response, you will need those for the next call. **Request 2:** New Request GET https://secure.sling.com/slingaccounts/rest/v5/member/{member-id}/device/slingboxes?contentType=application/json Replace {member-id} with the "identity" value from first request Under Authorization tab, select Basic Auth. Enter the "ticket" value from first request as the username. Leave the password blank. Hit Send. It should list out your memberslingbox JSON. Thanks @socelillyhammer for pointing out that the slingplayer desktop auth was still working. Hopefully this is helpful for those that need to recover their account box info and/or can't install slingplayer desktop for whatever reason.
abarberenaCPDS commented 1 year ago

Just confirmed, will update the documentation 📝