Jump to content

Recommended Posts

horstepipe
Posted

Hello guys,

I hope that somebody has a minute to help a little.

I want to create lots of collections via api. From the api reference I have this command

curl -X POST "http://url/emby/Collections?IsLocked=false&Name=Test12&api_key=xxx" -H "accept: application/json"

but from what I know I can't use this syntax in a script as the name field has to be url encoded (there are often special signs in the name).

So now I'm trying to use this format, but here I'm always getting

Access token is invalid or expired

 

curl -X POST https://url/emby/Collections --data-urlencode "Name=#Test11" --data-urlencode "Ids=5876939" -d "api_key=xx" -H "accept: application/json"

 

What is wrong here?

Posted

Hi, try that as a get rather than a post.

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
×
×
  • Create New...