User.get.private

From Safe Creative API
Revision as of 12:55, 5 August 2016 by w>Jguillo (Created page with 'Returns the authorizing user info. = Info = * '''Component name''': user.get.private * '''Signature''': Requires signature using the authorization key's private key * '''Timest…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns the authorizing user info.

Info

  • Component name: user.get.private
  • Signature: Requires signature using the authorization key's private key
  • Timestamp: Requires ztime parameter

Parameters

  • authkey*: The user's authorization key
  • ztime*: Z-Timestamp

* Required parameter

Returns

  • user
    • code User code
    • name: User's full name
    • accountType: User account type
      • BASIC: Basic (free) account
      • PROFESSIONAL: Professional account
      • CORPORATE: Corporate account
    • entrydate: Entry date
    • human-url: User profile url if available
    • thumbnail: User profile image url if available

Example

REQUEST:

https://api.safecreative.org/v2/
?authkey=6i716m0pecao2morajk4b6xt9
&component=user.get.private
&ztime=1470391371030
&signature=aea5f8c88cda967ba83ca3f7960576ee84b481e4

RESPONSE:

<?xml version="1.0" encoding="UTF-8"?>
<user>
  <code>0907240000121</code>
  <name>John Doe</name>
  <accountType>PROFESSIONAL</accountType>
  <entrydate>2009-07-24T10:34:55Z</entrydate>
  <human-url>http://www.safecreative.org/user/john.doe</human-url>
</user>