Class: Roistat::Resources::Calltracking

Inherits:
Base
  • Object
show all
Defined in:
lib/roistat/resources/calltracking.rb,
sig/roistat.rbs

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Roistat::Resources::Base

Instance Method Details

#call_delete(ids:) ⇒ Object

POST /project/calltracking/call/delete

Parameters:

  • ids: (Array[Integer | String])

Returns:

  • (Object)


65
66
67
# File 'lib/roistat/resources/calltracking.rb', line 65

def call_delete(ids:)
  client.post("project/calltracking/call/delete", body: {ids: ids})
end

#call_file(call_id:) ⇒ Object

POST /project/calltracking/call/callId/file

Parameters:

  • call_id: (Integer, String)

Returns:

  • (Object)


70
71
72
# File 'lib/roistat/resources/calltracking.rb', line 70

def call_file(call_id:)
  client.post("project/calltracking/call/#{call_id}/file", parse: :binary)
end

#call_list(**body) ⇒ Object

POST /project/calltracking/call/list

Parameters:

  • (Object)

Returns:

  • (Object)


55
56
57
# File 'lib/roistat/resources/calltracking.rb', line 55

def call_list(**body)
  post("project/calltracking/call/list", body: body)
end

#call_update(**body) ⇒ Object

POST /project/calltracking/call/update

Parameters:

  • (Object)

Returns:

  • (Object)


60
61
62
# File 'lib/roistat/resources/calltracking.rb', line 60

def call_update(**body)
  client.post("project/calltracking/call/update", body: body)
end

#call_xls_export(period:) ⇒ Object

POST /project/calltracking/call/xls/export

Parameters:

  • period: (Hash[Symbol | String, untyped])

Returns:

  • (Object)


75
76
77
78
79
80
81
# File 'lib/roistat/resources/calltracking.rb', line 75

def call_xls_export(period:)
  client.post(
    "project/calltracking/call/xls/export",
    body: {period: period},
    parse: :binary
  )
end

#data(period:) ⇒ Object

POST /project/calltracking/data

Parameters:

  • period: (Hash[Symbol | String, untyped])

Returns:

  • (Object)


84
85
86
# File 'lib/roistat/resources/calltracking.rb', line 84

def data(period:)
  client.post("project/calltracking/data", body: {period: period})
end

#phone_buy(prefix:, count:) ⇒ Object

POST /project/calltracking/phone/buy

Parameters:

  • prefix: (String)
  • count: (Integer)

Returns:

  • (Object)


40
41
42
# File 'lib/roistat/resources/calltracking.rb', line 40

def phone_buy(prefix:, count:)
  client.post("project/calltracking/phone/buy", body: {prefix: prefix, count: count})
end

#phone_call(**body) ⇒ Object

POST /project/phone-call

Parameters:

  • (Object)

Returns:

  • (Object)


89
90
91
# File 'lib/roistat/resources/calltracking.rb', line 89

def phone_call(**body)
  client.post("project/phone-call", body: body)
end

#phone_create(phones:) ⇒ Object

POST /project/calltracking/phone/create

Parameters:

  • phones: (Array[String])

Returns:

  • (Object)


35
36
37
# File 'lib/roistat/resources/calltracking.rb', line 35

def phone_create(phones:)
  client.post("project/calltracking/phone/create", body: {phones: phones})
end

#phone_delete(phones:) ⇒ Object

POST /project/calltracking/phone/delete

Parameters:

  • phones: (Array[Integer | String])

Returns:

  • (Object)


50
51
52
# File 'lib/roistat/resources/calltracking.rb', line 50

def phone_delete(phones:)
  client.post("project/calltracking/phone/delete", body: {phones: phones})
end

#phone_list(**body) ⇒ Object

POST /project/calltracking/phone/list

Parameters:

  • (Object)

Returns:

  • (Object)


25
26
27
# File 'lib/roistat/resources/calltracking.rb', line 25

def phone_list(**body)
  post("project/calltracking/phone/list", body: body)
end

#phone_prefix_list(**body) ⇒ Object

POST /project/calltracking/phone/prefix/list

Parameters:

  • (Object)

Returns:

  • (Object)


30
31
32
# File 'lib/roistat/resources/calltracking.rb', line 30

def phone_prefix_list(**body)
  post("project/calltracking/phone/prefix/list", body: body)
end

#phone_update(**body) ⇒ Object

POST /project/calltracking/phone/update

Parameters:

  • (Object)

Returns:

  • (Object)


45
46
47
# File 'lib/roistat/resources/calltracking.rb', line 45

def phone_update(**body)
  client.post("project/calltracking/phone/update", body: body)
end

#script_create(**body) ⇒ Object

POST /project/calltracking/script/create

Parameters:

  • (Object)

Returns:

  • (Object)


10
11
12
# File 'lib/roistat/resources/calltracking.rb', line 10

def script_create(**body)
  client.post("project/calltracking/script/create", body: body)
end

#script_delete(id:) ⇒ Object

POST /project/calltracking/script/delete

Parameters:

  • id: (Integer, String)

Returns:

  • (Object)


20
21
22
# File 'lib/roistat/resources/calltracking.rb', line 20

def script_delete(id:)
  client.post("project/calltracking/script/delete", body: {id: id})
end

#script_list(**body) ⇒ Object

POST /project/calltracking/script/list

Parameters:

  • (Object)

Returns:

  • (Object)


5
6
7
# File 'lib/roistat/resources/calltracking.rb', line 5

def script_list(**body)
  post("project/calltracking/script/list", body: body)
end

#script_update(**body) ⇒ Object

POST /project/calltracking/script/update

Parameters:

  • (Object)

Returns:

  • (Object)


15
16
17
# File 'lib/roistat/resources/calltracking.rb', line 15

def script_update(**body)
  client.post("project/calltracking/script/update", body: body)
end