Class: Freee::Partner
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
config, #get, #initialize, #post, set_env, #token, #token=
Constructor Details
This class inherits a constructor from Freee::Base
Class Method Details
.create ⇒ Object
3 4 5 |
# File 'lib/freee/partner.rb', line 3 def self.create Freee.client.post('/api/1/partners', :partner, **kwargs) end |
.list(company_id) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/freee/partner.rb', line 7 def self.list(company_id) Freee.client.get( "/api/1/partners?company_id=#{company_id.to_i}", :partner ) end |