Skip to main content

marketplace_listings_stubbed

Creates, updates, deletes, gets or lists a marketplace_listings_stubbed resource.

Overview

Namemarketplace_listings_stubbed
TypeResource
Idgithub.apps.marketplace_listings_stubbed

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idinteger
namestring (example: Pro)
unit_namestring
accounts_urlstring (uri) (example: https://api.github.com/marketplace_listing/plans/1313/accounts)
bulletsarray
descriptionstring (example: A professional-grade CI solution)
has_free_trialboolean
monthly_price_in_centsinteger
numberinteger
price_modelstring (FREE, FLAT_RATE, PER_UNIT) (example: FLAT_RATE)
statestring (example: published)
urlstring (uri) (example: https://api.github.com/marketplace_listing/plans/1313)
yearly_price_in_centsinteger

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_plans_stubbedselectper_page, pageLists all plans that are part of your GitHub Marketplace listing.

GitHub Apps must use a JWT to access this endpoint. OAuth apps must use basic authentication with their client ID and client secret to access this endpoint.

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.

NameDatatypeDescription
pageintegerThe page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

SELECT examples

Lists all plans that are part of your GitHub Marketplace listing.

GitHub Apps must use a JWT to access this endpoint. OAuth apps must use basic authentication with their client ID and client secret to access this endpoint.

SELECT
id,
name,
unit_name,
accounts_url,
bullets,
description,
has_free_trial,
monthly_price_in_cents,
number,
price_model,
state,
url,
yearly_price_in_cents
FROM github.apps.marketplace_listings_stubbed
WHERE per_page = '{{ per_page }}'
AND page = '{{ page }}'
;