Jump to content

wrong api calls?


Recommended Posts

symphonichorizon
Posted

so this code works to a point :

function createUser($name) {

        $this->params = array('url'=>$this->getUrl("Connect/Invite"),'ConnectUsername'=>$name, "SendingUserId" => $this->id, "EnabledLibraries" => '44e9e43b4061ccf7f51dc2c4f84e7afd,0c41907140d802bb58430fed7e2cd79e,21f5d92db0a8d1a5d0f526c8d8bca689,c2726e5131cf2cb081019d9ba0f8d3b1,384bb658bdd82344138c376d0e4945c0,8b3cdf6c3acdea27c7763238c20270cc,f137a2dd21bbc1b99aa5c0f6bf02a805,9eeb1e5fcfd290ffef511296d721745d,767bffe4f11c93ef34b805451a696a4e',"EnableLiveTvAccess" => 'false',"IsHidden" => 'true',"EnableLiveTvManagement" => 'false',"EnableContentDeletion" => 'false',"EnableContentDownloading" => 'false',"EnableMediaConversion" => 'false'
        );

none of the values after enabled libraries seem to get set.

'EnableLiveTvAccess' => 'false',
			'IsHidden' => 'true',
			'EnableLiveTvManagement' => 'false',
			'EnableContentDeletion' => 'false',
			'EnableContentDownloading' => 'false',
			'EnableMediaConversion' => 'false'

so i'm wondering if i have the wrong names?

Posted

Hi.  If you are creating a Connect user, then the user doesn't actually get fully created until after the Connect confirmation process is complete.

 

Therefore, you cannot set those permissions until then.

symphonichorizon
Posted

ahhhhh right. ok now to figure out how to notify the script when a invite is accepted. :)

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...