Class: Channel
Instance Method Summary
collapse
Methods inherited from ApiModule
#initialize
Constructor Details
This class inherits a constructor from ApiModule
Instance Method Details
#archive_channel(app_id:, channel_id:) ⇒ Object
16
17
18
19
20
21
|
# File 'lib/api/channel/channel.rb', line 16
def archive_channel(app_id:, channel_id:)
method = "POST"
endpoint = "app/" + app_id + "/channel/" + channel_id + "/archive"
uri = ApiUri::build_uri(endpoint)
return @client.request_json(method, uri)
end
|
#create_channel(app_id:, options:) ⇒ Object
2
3
4
5
6
7
|
# File 'lib/api/channel/channel.rb', line 2
def create_channel(app_id:, options:)
method = "POST"
endpoint = "app/" + app_id + "/channel"
uri = ApiUri::build_uri(endpoint)
return @client.request_json(method, uri, options)
end
|
#list_releases(app_id:, channel_id:) ⇒ Object
30
31
32
33
34
35
|
# File 'lib/api/channel/channel.rb', line 30
def list_releases(app_id:, channel_id:)
method = "GET"
endpoint = "app/" + app_id + "/channel/" + channel_id + "/releases"
uri = ApiUri::build_uri(endpoint)
return @client.request_json(method, uri)
end
|
#update_channel(app_id:, channel_id:, options:) ⇒ Object
9
10
11
12
13
14
|
# File 'lib/api/channel/channel.rb', line 9
def update_channel(app_id:, channel_id:, options:)
method = "POST"
endpoint = "app/" + app_id + "/channel/" + channel_id
uri = ApiUri::build_uri(endpoint)
return @client.request_json(method, uri, options)
end
|
#update_release(app_id:, channel_id:, sequence:, options:) ⇒ Object
23
24
25
26
27
28
|
# File 'lib/api/channel/channel.rb', line 23
def update_release(app_id:, channel_id:, sequence:, options:)
method = "POST"
endpoint = "app/" + app_id + "/channel/" + channel_id + "/release/" + sequence
uri = ApiUri::build_uri(endpoint)
return @client.request_json(method, uri, options)
end
|