|
createBlogAdminCookie |
|
Description
Returns a cookie which can be used to automatically log-in users to the Publisher Control Panel.
The cookie can be used as an argument by appending it to a URL which points to the Publisher Control Panel. For example:
https://www.blogware.com/admin/index.cgi/c=$COOKIE_ID
Users will then be recognized as authorized and automatically logged-in.
You can also append the cookie to your own Blogware hostname.
Warning: Use care with this function to prevent granting administrative access to unauthenticated users. It is advisable to use the reseller.authUser method to validate the user's credentials before calling this method.
Syntax
reseller.createBlogAdminCookie(version, username, password, blogware_username)
Request Fields
| • | version - Specifies the version number of the API. Set this to "1.3". This value is currently ignored, but will be useful for API changes in future versions. |
| • | username - Your reseller account username. |
| • | password - Your reseller account password. |
| • | blogware_username - The username of the user to whom you want to grant an admin cookie. |
Response Fields
Returns the cookie on success.