Jump to content

List of servers for a user empty?


VernoxVernax
 Share

Recommended Posts

VernoxVernax
Posted (edited)

Hello, I'm currently trying to get the list of servers from a users account. Wiki

The authentication part is working successfully and I get the required user_id and access_token, but the following get request just doesn't reply anything.

header = {
  "X-Application": "blah/1",
  "X-Connect-UserToken": access_token
}

response = requests.get("https://connect.emby.media/service/servers?userId={}".format(user_id), headers=header)

print(response.status_code)
print(response.text)

>> 200
>> []

I tried switching user_id and access_token and other stuff as well, but I'm pretty sure everything is fine on my side.

Please, help. What am I missing?

Edited by VernoxVernax
Link to comment
Share on other sites

Hi, are you authenticated as that user?

You can't use your account to get a list of servers from someone else's.

Link to comment
Share on other sites

  • 3 weeks later...
VernoxVernax
On 5/14/2022 at 6:28 PM, Luke said:

Hi, are you authenticated as that user?

You can't use your account to get a list of servers from someone else's.

I wasn't. and I was also not able to find any button on here to close issues; then I kinda forgot about it. Sorry.

Link to comment
Share on other sites

VernoxVernax
Posted (edited)
20 hours ago, Luke said:

Are you all set now?

Yes I am :)
Thank you!

Edited by VernoxVernax
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...