User.profiles: Difference between revisions
Jump to navigation
Jump to search
w>Jguillo Created page with 'Returns the list of a user's registration profiles = Info = * '''Component name:''' user.profiles * '''Signature:''' Requires signature using the authkey's private key * '''Time…' |
m 5 revisions imported |
||
(4 intermediate revisions by one other user not shown) | |||
Line 6: | Line 6: | ||
* '''Timestamp:''' Requires [[ztime parameter]] | * '''Timestamp:''' Requires [[ztime parameter]] | ||
* '''Authorization level:''' GET | * '''Authorization level:''' GET | ||
* '''API trust level''': Standard | |||
= Parameters = | = Parameters = | ||
Line 19: | Line 20: | ||
*** '''name''': Profile name | *** '''name''': Profile name | ||
= | = Example = | ||
REQUEST: | REQUEST: | ||
<nowiki>https://api.safecreative.org/v2/</nowiki> | <nowiki>https://api.safecreative.org/v2/</nowiki> | ||
?component=user.profiles | ?'''component'''=user.profiles | ||
&authkey=1i5g2aaf2bz09lyo867cuimqg | &'''authkey'''=1i5g2aaf2bz09lyo867cuimqg | ||
&ztime=1271749846810 | &'''ztime'''=1271749846810 | ||
&signature=81acc424b19596af6b4471146ec373fcc6aa7b26 | &'''signature'''=81acc424b19596af6b4471146ec373fcc6aa7b26 | ||
RESPONSE: | RESPONSE: | ||
<pre> | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<profiles> | |||
<profile> | |||
<code>0701034400200</code> | |||
<name>Blog</name> | |||
</profile> | |||
<profile> | |||
<code>0702034400200</code> | |||
<name>Article</name> | |||
</profile> | |||
<profile> | |||
<code>0702034400204</code> | |||
<name>Photo</name> | |||
</profile> | |||
</profiles> | |||
</pre> | |||
[[Category:API component]] | [[Category:API component]] |
Latest revision as of 08:07, 7 May 2021
Returns the list of a user's registration profiles
Info
- Component name: user.profiles
- Signature: Requires signature using the authkey's private key
- Timestamp: Requires ztime parameter
- Authorization level: GET
- API trust level: Standard
Parameters
- authkey*: User's authorization key
- ztime*: Z-Timestamp
* Required parameter
Returns
- profiles
- profile
- code: Profile code
- name: Profile name
- profile
Example
REQUEST:
https://api.safecreative.org/v2/ ?component=user.profiles &authkey=1i5g2aaf2bz09lyo867cuimqg &ztime=1271749846810 &signature=81acc424b19596af6b4471146ec373fcc6aa7b26
RESPONSE:
<?xml version="1.0" encoding="UTF-8"?> <profiles> <profile> <code>0701034400200</code> <name>Blog</name> </profile> <profile> <code>0702034400200</code> <name>Article</name> </profile> <profile> <code>0702034400204</code> <name>Photo</name> </profile> </profiles>