Sklik API

Client

client.get

Get user attributes. You can get only attributes for your account, not for managed accounts. Managed accounts
information is available in the foreignAccounts list in result of this method.

Parameters

struct user {
string session

Session (as retrieved from client.login())

}

Response

struct {
string status

Status code

string statusMessage

Status code description

string session

Refreshed session

datetime sessionStarted

When this session was started (by calling client.login())

struct user {
int userId

User Id

string username

Username

string agencyStatus

Status of this account:

  • normal: normal account (not an agency account)
  • wallet-agency: agency account taking credit from wallet
  • bill-agency: agency account with billing
  • client-agency: account expenses are paid by an agency account
int walletCredit

User's credit (in halers)

int walletCreditWithVat

User's credit including VAT; in halers

bool walletVerified

User's Wallet is verified

int dayBudgetSum

Sum of day budgets of all campaigns (in cents)

int accountLimit

(can be null) Account monthly limit (in halers) or nil;

}
array foreignAccounts (

Accounts to which this user has access

struct {
int userId

Foreign account user id

string username

Foreign account username

string access

Access type:

  • r: Read-only
  • rw: Read-write
string relationName

Name of relation to this foreign account

string relationStatus

Relation status:

  • live: connection to the account is working
  • offer: an offer of the access by a foreign account was not yet accepted
  • request: requested access to this foreign account was not yet accepted
string relationType

Type of the relation to this foreign account:

  • normal: normal
  • agency: agency relation; foreign account expenses are paid by this user
int walletCredit

(can be null) Foreign account user's credit (in halers) or nil

int walletCreditWithVat

(can be null) Foreign account user's credit including VAT (in halers)

bool walletVerified

(can be null) User's Wallet is verified; can be nil if not

int accountLimit

(can be null) Account monthly limit (in halers) or nil;

int dayBudgetSum

Sum of day budgets of all campaigns (in cents)

}
)
array diagnostics (

(optional) Various diagnostics(warnings, errors, other information)

struct {
...
}
)
}

Response status codes:

List of all possible response status codes:

Diagnostics:

List of all possible diagnostics:

Copyright © 1996-2020

www.seznam.cz Help Contact