Class: Sendbird::ApplicationApi

Inherits:
Object
  • Object
show all
Extended by:
Client
Defined in:
lib/sendbird/application_api.rb

Constant Summary collapse

ENDPOINT =
'applications'.freeze

Constants included from Client

Client::PUBLIC_METHODS

Class Method Summary collapse

Methods included from Client

build_url

Class Method Details

.apns_push_configurationObject



52
53
54
# File 'lib/sendbird/application_api.rb', line 52

def apns_push_configuration
  get(path: build_url('push', 'apns'))
end

.ccuObject



32
33
34
# File 'lib/sendbird/application_api.rb', line 32

def ccu
  get(path: build_url('ccu'))
end

.create(body) ⇒ Object



7
8
9
# File 'lib/sendbird/application_api.rb', line 7

def create(body)
  post_http_basic(path: build_url, body: body)
end

.daily_message_count(params = {}) ⇒ Object



44
45
46
# File 'lib/sendbird/application_api.rb', line 44

def daily_message_count(params={})
  get(path: build_url('daily_count'), params: params)
end

.dau(params = {}) ⇒ Object



40
41
42
# File 'lib/sendbird/application_api.rb', line 40

def dau(params={})
  get(path: build_url('dau'), params: params)
end

.destroyObject



24
25
26
# File 'lib/sendbird/application_api.rb', line 24

def destroy
  delete(path: build_url)
end

.destroy_allObject

Right now this endpoint is failing in there site def view

get(path: build_url)

end



20
21
22
# File 'lib/sendbird/application_api.rb', line 20

def destroy_all
  delete_http_basic(path: build_url)
end

.gcm_push_configurationObject



48
49
50
# File 'lib/sendbird/application_api.rb', line 48

def gcm_push_configuration
  get(path: build_url('push', 'gcm'))
end

.list(params = {}) ⇒ Object



11
12
13
# File 'lib/sendbird/application_api.rb', line 11

def list(params={})
  get_http_basic(path: build_url, params: params)
end

.mau(params = {}) ⇒ Object



36
37
38
# File 'lib/sendbird/application_api.rb', line 36

def mau(params={})
  get(path: build_url('mau'), params: params)
end

.profanaty(body = {}) ⇒ Object



28
29
30
# File 'lib/sendbird/application_api.rb', line 28

def profanaty(body={})
  put(path: build_url('profanity'), body: body)
end