module Octokit::Client::Marketplace
Methods for the Marketplace
Listing API
Public Instance Methods
List all GitHub accounts on a specific plan
@param plan_id [Integer] The id of the GitHub plan @param options [Hash] A customizable set of options
@return [Array<Sawyer::Resource>] A list of accounts
# File lib/octokit/client/marketplace.rb, line 29 def list_accounts_for_plan(plan_id, options = {}) opts = ensure_api_media_type(:marketplace, options) paginate "/marketplace_listing/plans/#{plan_id}/accounts", opts end
List all plans for an app's marketplace listing
@param options [Hash] A customizable set of options
@see developer.github.com/v3/apps/marketplace/#list-all-plans-for-your-marketplace-listing
@return [Array<Sawyer::Resource>] A list of plans
# File lib/octokit/client/marketplace.rb, line 16 def list_plans(options = {}) opts = ensure_api_media_type(:marketplace, options) paginate "/marketplace_listing/plans", opts end
Get user's Marketplace
purchases
@param options [Hash] A customizable set of options
@see developer.github.com/v3/apps/marketplace/#get-a-users-marketplace-purchases
@return [Array<Sawyer::Resource>] A list of Marketplace
purchases
# File lib/octokit/client/marketplace.rb, line 54 def marketplace_purchases(options = {}) opts = ensure_api_media_type(:marketplace, options) get "/user/marketplace_purchases", opts end
Get the plan associated with a given GitHub account
@param account_id [Integer] The id of the GitHub account @param options [Hash] A customizable set of options
@return <Sawyer::Resource> Account with plan details, or nil
# File lib/octokit/client/marketplace.rb, line 42 def plan_for_account(account_id, options = {}) opts = ensure_api_media_type(:marketplace, options) get "/marketplace_listing/accounts/#{account_id}", opts end