Jump to content

Wrapping WHCMS in IOS app - Validate login


tmo

Recommended Posts

I am making an IOS app for iPhone wrapping the WHMCS but I'm having problems figuring out how to set up the Validate Login message from my objective-c code.

 

My base URL will be something like this: @"http://www.divendo.dk/includes/api.php" - or what?

The httpBody for the message something like this: @"action=validatelogin,email=myEmail,password=myPassword" - or what?

 

I get back a response from the request, but sure not what I expected. Seems like a get a whole HTML page code string back. At least I would like to get back an error-response in accordance with the spec.

 

I'm not familar with PHP at all, so I'm not able to try the supplied code samples supplied and I would rather be free of that if possible.

 

Can anybody guide me, please ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated