Resource

The App Store API

APIDescription
GET api/Resource/UserInfo

Returns App Store UserInfo for user associated with this request. Requires "UserInfo" scope authorization.

GET api/Resource/UserBalance

Returns App Store credit balance for user associated with this request. The balance only includes credits available for spending on the App associated with this request. Requires "UserInfo" scope authorization.

POST api/Resource/Debit?debitAmount={debitAmount}

Executes debit of App Store Credit account for user associated with this request. The transaction is logged against the app associated with the request. A transaction reference is returned that can be used in a request. Requires "AccountDebit" scope authorization.

POST api/Resource/Refund?transactionRef={transactionRef}

Refunds the transaction associated with TransactionId providing the request is executed within the required time-frame. Requires "AccountDebit" scope authorization.

POST api/Resource/Subscription/{targetUrl}

Register an endpoint on which to receive event messages. Requires "DataRead" scope authorization.

DELETE api/Resource/Subscription/{subscriptionId}

Delete subscription. Requires "DataRead" scope authorization.

Data

Web API controller for querying data sources.

APIDescription
GET Gestalt/api/data/datasources?filter={filter}

Gets the available data sources.

GET Gestalt/api/data/tags/{dsn}?name={name}&description={description}&unit={unit}&filter[0]={filter[0]}&filter[1]={filter[1]}&value[0]={value[0]}&value[1]={value[1]}&pageSize={pageSize}&page={page}

Performs a tag search on the specified data source.

GET Gestalt/api/data/values/{dsn}?tag[0]={tag[0]}&tag[1]={tag[1]}&function={function}&start={start}&end={end}&points={points}&step={step}&annotations={annotations}

Performs a data query on the specified data source.

GET Gestalt/api/data/values?dsn[0]={dsn[0]}&dsn[1]={dsn[1]}&tag[0]={tag[0]}&tag[1]={tag[1]}&function={function}&start={start}&end={end}&points={points}&step={step}&annotations={annotations}

Performs a multi-data source data query.