Current time: 04-19-2014, 11:08 AM Hello There, Guest! (LoginRegister)

 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A few small bugs and suggestions
09-08-2009, 05:32 PM
Post: #7
RE: A few small bugs and suggestions
(09-08-2009 05:21 PM)umarsa Wrote:  Hmm i think most servers support mod_rewrite lol.

How on earth do i hash it??

Here's a copy & paste from our developmental forums:

The format for the XML-API will be like:
Code:
xml-api/function/auth

If you had to pass a param to the function you would do it like this:
Code:
xml-api/function/params/auth

Now how would you hash these functions to create a valid auth?
If you have no params:
PHP Code:
hash('sha512'sha1($function) . sha1($key)) 
$function is the function and $key is the api-key.

Now if you have parameters...
PHP Code:
hash('sha512'sha1($function '|' $params) . sha1($key)) 
Where $function is your function, $params are your parameters, and $key is your api-key.

(09-08-2009 05:28 PM)Jonny Wrote:  About the WHM Importer.
When you use the API to get all the information for the WHM accounts it doesn't pass along the email.

Yes it does...

http://twiki.cpanel.net/twiki/bin/view/A...stAccounts

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user


Messages In This Thread
A few small bugs and suggestions - umarsa - 09-08-2009, 05:00 PM
RE: A few small bugs and suggestions - Kevin - 09-08-2009 05:32 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)