module Octokit::Client::Marketplace

def list_accounts_for_plan(plan_id, options = {})

Returns:
  • (Array) - A list of accounts

Other tags:
    See: https://developer.github.com/v3/apps/marketplace/#list-all-github-accounts-user-or-organization-on-a-specific-plan -

Parameters:
  • options (Hash) -- A customizable set of options
  • plan_id (Integer) -- The id of the GitHub plan
def list_accounts_for_plan(plan_id, options = {})
  paginate "/marketplace_listing/plans/#{plan_id}/accounts", options
end

def list_plans(options = {})

Returns:
  • (Array) - A list of plans

Other tags:
    See: https://developer.github.com/v3/apps/marketplace/#list-all-plans-for-your-marketplace-listing -

Parameters:
  • options (Hash) -- A customizable set of options
def list_plans(options = {})
  paginate '/marketplace_listing/plans', options
end

def marketplace_purchases(options = {})

Returns:
  • (Array) - A list of Marketplace purchases

Other tags:
    See: https://developer.github.com/v3/apps/marketplace/#get-a-users-marketplace-purchases -

Parameters:
  • options (Hash) -- A customizable set of options
def marketplace_purchases(options = {})
  get '/user/marketplace_purchases', options
end

def plan_for_account(account_id, options = {})

Returns:
  • (Sawyer::Resource) - Account with plan details, or nil

Other tags:
    See: https://developer.github.com/v3/apps/marketplace/#check-if-a-github-account-is-associated-with-any-marketplace-listing -

Parameters:
  • options (Hash) -- A customizable set of options
  • account_id (Integer) -- The id of the GitHub account
def plan_for_account(account_id, options = {})
  get "/marketplace_listing/accounts/#{account_id}", options
end