I want to make an application that make it possible to easy get new user, where they can request access and i can accept with the application.
Is there a way to add new plex accounts to a plex serve useing something else than the GUI way in the browser?
i’m assuming you do it via HTTP post to plex.tv
I have done user switching before but have not done user adding.
Validate the user’s email:
POST https://plex.tv/api/users/validate?invited_email=UserPlexAccountEmail@domain.com
Send the invite to the user:
POST https://plex.tv/api/home/users?invitedEmail=UserPlexAccountEmail@domain.com
@JonnyWong16 said:
Validate the user’s email:
POST https://plex.tv/api/users/validate?invited_email=UserPlexAccountEmail@domain.com
Send the invite to the user:
POST https://plex.tv/api/home/users?invitedEmail=UserPlexAccountEmail@domain.com
Great!,
Currenty i have it setup to just open the browser and used tab and insert text, works great but i want something that can go in the background, this might fix that =D
Thx
Hey, when I’m trying to send an ivitation via:
curl -vvv -sfku myplexmail:myplexpw -X POST https://plex.tv/api/home/users?invitedEmail=NEWINVITATIONMAIL
I receive an “The requested URL returned error: 403 Forbidden”
Can someoe tell my why?
Read more about the URL commands here: Plex.tv · Arcanemagus/plex-api Wiki · GitHub
You will need to authenticate when interacting with a Plex-server using ‘X-Plex-Token=[TOKEN]’ e.g. the send invite to user would look like this:
https://plex.tv/api/home/users?invitedEmail=UserPlexAccountEmail@domain.com&X-Plex-Token=replace_with_token_here
Read about tokens here: Finding an authentication token / X-Plex-Token | Plex Support
Hope this will help some of you use these ‘URL commands’ in some creative codes
system
Closed
March 5, 2020, 5:53pm
8
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.