Error :Password parameter missing!!

For general discussion of the Poker Mavens software
Post Reply
shahriyar3
Posts: 2
Joined: Sat Jul 07, 2012 11:04 am

Error :Password parameter missing!!

Post by shahriyar3 »

hi
To edit a user account using the link similar to this have
$params = "/api?Password=" .$pw. "&Command=AccountsEdit&Player=" .$player. "&RealName" . $name . "&Location=" . $location;
But the error Is shown
Error: Password parameter missing
How can I fix this error?
thanks
Kent Briggs
Site Admin
Posts: 6057
Joined: Wed Mar 19, 2008 8:47 pm

Re: Error :Password parameter missing!!

Post by Kent Briggs »

Remove the /api? part from the $params variable. It is part of the url and the leading question mark is not used in a parameter list in the PHP curl function. See other examples here:

http://www.briggsoft.com/docs/pmavens/API_Examples.htm
shahriyar3
Posts: 2
Joined: Sat Jul 07, 2012 11:04 am

Re: Error :Password parameter missing!!

Post by shahriyar3 »

thank you previous problem is ok.
but i can not change the realname fields?!!
location field is ok but realname have problem
Kent Briggs
Site Admin
Posts: 6057
Joined: Wed Mar 19, 2008 8:47 pm

Re: Error :Password parameter missing!!

Post by Kent Briggs »

shahriyar3 wrote: but i can not change the realname fields?!!
location field is ok but realname have problem
You are missing an equals sign in the example you posted above.
Change &RealName to &RealName=
Post Reply