This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:sedamo:api:sedamo_api_method_account_create [2022/03/26 15:14] – ↷ Page moved from i:sedamo:api:sedamo_api_method_account_create to en:sedamo:api:sedamo_api_method_account_create admin | en:sedamo:api:sedamo_api_method_account_create [2024/03/11 21:43] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== API: Account/ | ||
+ | == Summary == | ||
+ | Creates a new user account and the first API key. | ||
+ | |||
+ | == URL == | ||
+ | https:// | ||
+ | |||
+ | == Authentication == | ||
+ | Not required | ||
+ | |||
+ | == Parameters == | ||
+ | * ['' | ||
+ | * ['' | ||
+ | * ['' | ||
+ | * ['' | ||
+ | * ['' | ||
+ | * ['' | ||
+ | * ['' | ||
+ | * ['' | ||
+ | * ['' | ||
+ | * '' | ||
+ | |||
+ | |||
+ | == Response == | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | Register an user with name and full contact data: | ||
+ | |||
+ | <code PHP sedamo_api_method_account_create.php> | ||
+ | <?php | ||
+ | $data = array( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | |||
+ | $url = " | ||
+ | $json = file_get_contents($url); | ||
+ | $json_array = json_decode($json, | ||
+ | var_dump($json_array); | ||
+ | </ | ||
+ | |||
+ | Minimalist registration: | ||
+ | |||
+ | <code PHP sedamo_api_method_account_create.php> | ||
+ | <?php | ||
+ | $url = " | ||
+ | $json = file_get_contents($url); | ||
+ | $json_array = json_decode($json, | ||
+ | var_dump($json_array); | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | Example of a returned JSON object: | ||
+ | |||
+ | <code JAVA> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Example of a returned XML string: | ||
+ | |||
+ | <code XML> | ||
+ | <?xml version=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | == Possible error messages == | ||
+ | * username is not 8 chars long | ||
+ | * username is already in use | ||
+ | * e-mail invalid | ||
+ | * //sedamo// address code invalid | ||
+ | |||
+ | Sample error message: | ||
+ | |||
+ | <code JAVA> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | [[en: |