get https://api.chartmogul.com/v1/account
Returns details of your account.
Examples
curl -X GET "https://api.chartmogul.com/v1/account" \
-u YOUR_API_KEY:
ChartMogul::Account.retrieve
ChartMogul.Account.retrieve(config, function (err, res) {
// asynchronously called
});
<?php
ChartMogul\Account::retrieve();
?>
api.RetrieveAccount()
chartmogul.Account.retrieve(config)
Result Format
{
"name": "ChartMogul",
"currency": "USD",
"time_zone": "Europe/Berlin",
"week_start_on": "monday"
}
#<ChartMogul::Account:0x007fb4993f25a0
@name="ChartMogul",
@currency="USD",
@time_zone="Europe/Berlin",
@week_start_on="monday"
>
{
"name": "ChartMogul",
"currency": "USD",
"time_zone": "Europe/Berlin",
"week_start_on": "monday"
}
<?php
ChartMogul\Account::__set_state(array(
"name" => "ChartMogul",
"currency" => "USD",
"time_zone" => "Europe/Berlin",
"week_start_on" => "monday"
));
?>
(*chartmogul.Account)(0xc04203e5a0)({
Name: (string) (len=10) "ChartMogul",
Currency: (string) (len=3) "USD",
TimeZone: (string) (len=13) "Europe/Berlin",
WeekStartOn: (string) (len=6) "monday"
})
<Account{
name='ChartMogul',
currency='USD',
time_zone='Europe/Berlin',
week_start_on='sunday'}>
In the response, the JSON
object contains the following data:
name
- Name of your account.currency
- Code representing your account currency, e.g.USD
orEUR
time_zone
- Canonical time zone name of your account time zone, e.g.Europe/Berlin
.week_start_on
- First day of the week according to your account, e.g.monday
.