+44 20 881 67284

28,220,494 Royalty Free Stock Photos

How to use the Fotolia API

Method: user/createUser

This method allows the creation of a Fotolia Member account. All profile fields available on the website are available through the API.

Authentication

This method does not require authentication.

HTTP method

This method is called with HTTP method POST.

Arguments

Argument Type Element (array) Valid Values Default Value Detail
properties[login] string login of the account required Between 3 and 16 characters
properties[password] string password of the account required Between 3 and 16 characters
properties[email] string email of the account required
properties[language_id] int
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 11
  • 12
  • 13
  • 14
  • 15
  • 22
  • 23
required
  • French
  • American
  • English
  • German
  • Spanish
  • Italian
  • Portuguese
  • Brazilian
  • Japanese
  • Polish
  • Russian
  • Chinese
  • Turkish
  • Korean
  • Dutch
  • Swedish
properties[display_name] string optional alias name to use for the account (per default login is used)
properties[firstname] string optional Between 3 and 20 characters
properties[lastname] string optional Between 3 and 20 characters
properties[address] string optional Member postal address
properties[zipcode] string optional Member postal ZIP code
properties[city] string optional Member city
properties[country_id] int optional Member country ID (see getCountries)
properties[newsletter] boolean 1 0 - 1 optional Newsletter subscription flag

Returned Values

Element (path) Name Type Description
/ Member ID int account member ID

Example Query

POST http://API_KEY@api.fotolia.com/Rest/1/user/createUser?id=20

properties[login]=LOGIN&properties[password]=PASSWORD&properties[email]=EMAIL&properties[language_id]=LANGUAGE_ID

Example Response

42

Error Codes

001: Service currently unavailable
The requested service is temporarily unavailable.
002: Failed to parse request
The request could not be parsed.
010: Missing API Key
The API key passed is missing.
011: Invalid API Key
The API key passed is not valid or has expired.
031: Invalid Method
This method does not exist in the method list.
032: Method not Available
This method is not available for this API Key.
2001: Invalid language ID
The language ID passed does not exist.
6006: Cannot create user
Unknown error occurred, user cannot be created.
6007: Data validation error
Invalid data given in properties fields.
6008: Login already exists
The requested login is already in use.
6009: Email validation required
Account has to be validated by email to be confirmed.
6010: SMS validation required
Account has to be validated by SMS to be confirmed.