Module: Octokit::Client::Marketplace
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| Included In: | |
| Defined in: | lib/octokit/client/marketplace.rb | 
Overview
Methods for the Marketplace Listing API
Instance Method Summary
- 
    
      #list_accounts_for_plan(plan_id, options = {})  ⇒ Array<Sawyer::Resource> 
    
    List all GitHub accounts on a specific plan. 
- 
    
      #list_plans(options = {})  ⇒ Array<Sawyer::Resource> 
    
    List all plans for an app's marketplace listing. 
- 
    
      #marketplace_purchases(options = {})  ⇒ Array<Sawyer::Resource> 
    
    Get user's Marketplacepurchases.
- 
    
      #plan_for_account(account_id, options = {})  ⇒ Sawyer::Resource 
    
    Get the plan associated with a given GitHub account. 
Instance Method Details
    #list_accounts_for_plan(plan_id, options = {})  ⇒ Array<Sawyer::Resource> 
  
List all GitHub accounts on a specific plan
# File 'lib/octokit/client/marketplace.rb', line 28
def list_accounts_for_plan(plan_id, = {}) paginate "/marketplace_listing/plans/#{plan_id}/accounts", end
    #list_plans(options = {})  ⇒ Array<Sawyer::Resource> 
  
List all plans for an app's marketplace listing
# File 'lib/octokit/client/marketplace.rb', line 16
def list_plans( = {}) paginate '/marketplace_listing/plans', end
    #marketplace_purchases(options = {})  ⇒ Array<Sawyer::Resource> 
  
Get user's Marketplace purchases
# File 'lib/octokit/client/marketplace.rb', line 51
def marketplace_purchases( = {}) get '/user/marketplace_purchases', end
    #plan_for_account(account_id, options = {})  ⇒ Sawyer::Resource 
  
Get the plan associated with a given GitHub account
# File 'lib/octokit/client/marketplace.rb', line 40
def plan_for_account(account_id, = {}) get "/marketplace_listing/accounts/#{account_id}", end