Account Auth Profile

Account

GET /v1/advertiser/account/api

https://api.revrelations.com/v1/advertiser/account/api?key=API-KEY


Get current API key or create a new API key for account. If no API key exist one will get created



GET PARAMETER
Name Required Description
new No Create new API key even if one already exist

ERROR MESSAGES
Error code Http code Description
27 400 Unable to create new API key
GET /v1/advertiser/account/countries

https://api.revrelations.com/v1/advertiser/account/countries?key=API-KEY


Get list of countries


GET /v1/advertiser/account/list

https://api.revrelations.com/v1/advertiser/account/list?key=API-KEY


Get account data


POST /v1/advertiser/account/password

https://api.revrelations.com/v1/advertiser/account/password?key=API-KEY


Change account password



POST PARAMETER
Namn Required Description
current No Current password
new Yes New password
reset_code No Set a new password for account with specific reset code
verify No Verify new password

ERROR MESSAGES
Error code Http code Description
28 400 Unable to change password
29 400 New and verify parameters does not match
42 400 Missing parameter: current
43 400 Missing parameter: new
44 400 Missing parameter: verify
POST /v1/advertiser/account/reset

https://api.revrelations.com/v1/advertiser/account/reset?key=API-KEY


Reset account password



POST PARAMETER
Namn Required Description
email Yes E-mail to reset password for
branding_email No Branding email. Defaults to [email protected]
branding_name No Branding name. Defaults to Bloggerfy
branding_reset_url No Branding url. Defaults to http://www.revrelations.com/reset/{reset_code}

ERROR MESSAGES
Error code Http code Description
45 400 Missing reset parameter: email
46 400 Unable to find user with specified email
47 400 Unable to send recovery email
48 400 Invalid email
POST /v1/advertiser/account/update

https://api.revrelations.com/v1/advertiser/account/update?key=API-KEY


Update account data



POST PARAMETER
Namn Required Description
address_1 No Address 1
address_2 No Address 2
birth_id No Birthday id
birthday No Birthday date (1990-04-23)
city No City (Stockholm)
company No Company name
country_id No Country id (SE, UK, US, etc)
gender No Gender (FEMALE / MALE)
firstname No First name
lastname No Last name
organization_number No Company organization number
phone No Phone number
vat_number No Company VAT number
zipcode No Zip code

ERROR MESSAGES
Error code Http code Description
16 400 Nothing to update
30 400 Unable to update account

Auth

POST /v1/advertiser/auth/plain

https://api.revrelations.com/v1/advertiser/auth/plain


Authenticate using password and username to create a temporary api session key



POST PARAMETER
Namn Required Description
password Yes Password
username Yes Username

ERROR MESSAGES
Error code Http code Description
3 403 Authentication failed
25 400 Missing parameter: password
26 400 Missing parameter: username

Profile

GET /v1/advertiser/profile/list

https://api.revrelations.com/v1/advertiser/profile/list?key=API-KEY


Get profile data



GET PARAMETER
Name Required Description
limit No Number of items to return. Defaults to 10
profile_id No Get data for a specific profile
page No Specify this option to choose what page to get items for
POST /v1/advertiser/profile/update

https://api.revrelations.com/v1/advertiser/profile/update?key=API-KEY


Update profile data



POST PARAMETER
Namn Required Description
category_id No Profile category id
description No Description of profile
image No Url to image
name No Name of profile
url No Profile url

ERROR MESSAGES
Error code Http code Description
6 400 Missing parameter: profile_id
15 400 Unable to update profile
16 400 Nothing to update