Module: Octokit::Client::Marketplace

Included in:
Octokit::Client
Defined in:
lib/octokit/client/marketplace.rb

Overview

Methods for the Marketplace Listing API

Instance Method Summary collapse

Instance Method Details

#list_accounts_for_plan(plan_id, options = {}) ⇒ Array<Sawyer::Resource>

List all GitHub accounts on a specific plan


28
29
30
# File 'lib/octokit/client/marketplace.rb', line 28

def list_accounts_for_plan(plan_id, options = {})
  paginate "/marketplace_listing/plans/#{plan_id}/accounts", options
end

#list_plans(options = {}) ⇒ Array<Sawyer::Resource>

List all plans for an app's marketplace listing


16
17
18
# File 'lib/octokit/client/marketplace.rb', line 16

def list_plans(options = {})
  paginate "/marketplace_listing/plans", options
end

#marketplace_purchases(options = {}) ⇒ Array<Sawyer::Resource>

Get user's Marketplace purchases


51
52
53
# File 'lib/octokit/client/marketplace.rb', line 51

def marketplace_purchases(options = {})
  get "/user/marketplace_purchases", options
end

#plan_for_account(account_id, options = {}) ⇒ Sawyer::Resource

Get the plan associated with a given GitHub account


40
41
42
# File 'lib/octokit/client/marketplace.rb', line 40

def (, options = {})
  get "/marketplace_listing/accounts/#{}", options
end