AuroraServices 0 Posted August 23, 2018 Author Share Posted August 23, 2018 thank you, will try that now Link to comment Share on other sites More sharing options...
AuroraServices 0 Posted August 24, 2018 Author Share Posted August 24, 2018 Is there a actual list of what is required in the command. The wiki isn't very clear on this Authenticate using /Users/AuthenticateByName. A 200 status code indicates success, while anything in the 400 or 500 range indicates failure. The password must be sent in the body, in three different form fields: pw - password in plain text password - password in Sha1 passwordMd5 - password in MD5 IMPORTANT - The Emby login API is in a state of transition, and this is why three different forms of the password are required. Beginning April 1, 2018, only the "pw" param will be required. Until then, all three are needed in order to support both newer and older servers. tried all three tried one tried none etc etc, currently this: "Username": "actualusername", "Password": "sha1", "Pw": "editedcleartext", "PasswordMd5": "md5", "Userid" : "vjg8fgjdjdjd" } is not working either. is there better documentation anywhere? Link to comment Share on other sites More sharing options...
Luke 37019 Posted August 24, 2018 Share Posted August 24, 2018 With AuthenticateByName you don't send UserId, you are logging in with just username and password. Link to comment Share on other sites More sharing options...
AuroraServices 0 Posted August 24, 2018 Author Share Posted August 24, 2018 (edited) tried that to response is value cant be null ahhhh, so this just popped up " Parameter name: appName" got passed that and now we're on Parameter name: appNameroot <----nooooooooo idea what to put here yet Edited August 24, 2018 by AuroraServices Link to comment Share on other sites More sharing options...
Luke 37019 Posted August 24, 2018 Share Posted August 24, 2018 At this point you're essentially asking us to identify what is wrong with your requests, but there is plenty of information available to allow you to do that on your own. Have you compared what you're doing to our wiki documentation? https://github.com/MediaBrowser/Emby/wiki Have you compared what you're doing to our very own javascript api library? https://github.com/MediaBrowser/Emby.ApiClient.Javascript Link to comment Share on other sites More sharing options...
AuroraServices 0 Posted August 24, 2018 Author Share Posted August 24, 2018 none of the items coming up are listed in the wiki, that would be why I asked is there proper documentation for the commands, it's now asking me for things that are not even talked about on the authentication page so what exactly should I be reading? Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted August 24, 2018 Share Posted August 24, 2018 To try and answer your questions - as the WIKI's assume you are familiar with a lot of stuff thats not covered. try looking at this script (its powershell not php which i think you are using) which shows you how to construct a valid login string and amongst other things how to create a user, change a password etc https://github.com/RobinBeismann/PowerShell-EmbyApi/blob/master/EmbyLib.ps1 I have used this code initially - although i have refined it a lot to what i need and added some error checking which it lacks. Should be easy enough to follow Link to comment Share on other sites More sharing options...
AuroraServices 0 Posted August 24, 2018 Author Share Posted August 24, 2018 thank you! your my hero Link to comment Share on other sites More sharing options...
symphonichorizon 4 Posted September 3, 2018 Share Posted September 3, 2018 ok script is now working, turns out my host was blocking the dang port........yeah. Link to comment Share on other sites More sharing options...
Luke 37019 Posted September 3, 2018 Share Posted September 3, 2018 Thanks for the feedback. Link to comment Share on other sites More sharing options...
nhl3230@hotmail.com 0 Posted August 4, 2019 Share Posted August 4, 2019 if i wanted to use your script on my own system could you help me out? Link to comment Share on other sites More sharing options...
nhl3230@hotmail.com 0 Posted August 4, 2019 Share Posted August 4, 2019 i just dont understand where do i put this script in my whmcs and also what do i edit for the scrip to work with my emby servers Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted August 4, 2019 Share Posted August 4, 2019 Which script? Link to comment Share on other sites More sharing options...
nhl3230@hotmail.com 0 Posted August 4, 2019 Share Posted August 4, 2019 script from AuroraServices the one he uploaded i tried it on my server but no luck Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted August 4, 2019 Share Posted August 4, 2019 well the one he posted in the first post did not work - hence most of this tread i posted an example (powershell) script (post #32) from github which works - so use that as a basis for your script? Link to comment Share on other sites More sharing options...
nhl3230@hotmail.com 0 Posted August 5, 2019 Share Posted August 5, 2019 alright ill give it a try i just not know to much about coding and just trying to get WHMCS to add new users to my emby server that is pretty much it Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted August 5, 2019 Share Posted August 5, 2019 dont use WHMCS so cant help with that but if it can run a user defined script - then you can pass from whmcs the users details to the script which then can add these to emby Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now