Module: AppStoreConnectApi::Domain::Certificates

Included in:
AppStoreConnectApi::Domain
Defined in:
lib/app_store_connect_api/domain/certificates.rb

Instance Method Summary collapse

Instance Method Details

#certificate(certificate_id, options = {}) ⇒ Object



12
13
14
# File 'lib/app_store_connect_api/domain/certificates.rb', line 12

def certificate(certificate_id, options = {})
  get "/v1/certificates/#{certificate_id}", options
end

#certificates(options = {}) ⇒ Object



7
8
9
# File 'lib/app_store_connect_api/domain/certificates.rb', line 7

def certificates(options = {})
  get '/v1/certificates', options
end

#create_certificate(attributes) ⇒ Object



17
18
19
20
# File 'lib/app_store_connect_api/domain/certificates.rb', line 17

def create_certificate(attributes)
  post '/v1/certificates', data: { attributes: attributes,
                                   type: 'certificates' }
end

#delete_certificate(certificate_id) ⇒ Object Also known as: revoke_certificate



23
24
25
# File 'lib/app_store_connect_api/domain/certificates.rb', line 23

def delete_certificate(certificate_id)
  delete "/v1/certificates/#{certificate_id}"
end