marketplace_users_subs_stubbed
Creates, updates, deletes, gets or lists a marketplace_users_subs_stubbed resource.
Overview
| Name | marketplace_users_subs_stubbed |
| Type | Resource |
| Id | github.apps.marketplace_users_subs_stubbed |
Fields
The following fields are returned by SELECT queries:
- list_subscriptions_for_authenticated_user_stubbed
Response
| Name | Datatype | Description |
|---|---|---|
account | object | (title: Marketplace Account) |
billing_cycle | string | (example: monthly) |
free_trial_ends_on | string (date-time) | (example: 2017-11-11T00:00:00Z) |
next_billing_date | string (date-time) | (example: 2017-11-11T00:00:00Z) |
on_free_trial | boolean | |
plan | object | Marketplace Listing Plan (title: Marketplace Listing Plan) |
unit_count | integer | |
updated_at | string (date-time) | (example: 2017-11-02T01:12:12Z) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_subscriptions_for_authenticated_user_stubbed | select | per_page, page | Lists the active subscriptions for the authenticated user. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
page | integer | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
per_page | integer | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
SELECT examples
- list_subscriptions_for_authenticated_user_stubbed
Lists the active subscriptions for the authenticated user.
SELECT
account,
billing_cycle,
free_trial_ends_on,
next_billing_date,
on_free_trial,
plan,
unit_count,
updated_at
FROM github.apps.marketplace_users_subs_stubbed
WHERE per_page = '{{ per_page }}'
AND page = '{{ page }}'
;