ZOHOCRMSDK6_0 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df03134d69d2be679fa12f0fbb0ec43d979dad4616f031d5e0a63f83ad70e4eb
4
- data.tar.gz: b5ec010e7e042d5ccf19c24992580dd18019aef19c9a9f7edc5cc96e86993aa4
3
+ metadata.gz: d2a6cea40a51128eb5eb3c8d898bc7017730874c6119a2890896df45901a633a
4
+ data.tar.gz: 341bd0e2717043d7d0e4a22b20e227a5b3a8b805e9ff26d4b35d876991c5fa34
5
5
  SHA512:
6
- metadata.gz: 193b09c8097ea7b190d1a610d20444a8679cc5f892bfd42146c4f69089528a48df80a49b233d24dbc43f41b638d0cbe36f321e051bfd895c201d59f2a71c15ea
7
- data.tar.gz: 134e51ad63761a05ef1fe1c1fde13bdac39ab14c92cbfffc8fb952226c752ff390cd8a2b8329bca7f15ec9f60e88ebeedb19dd3bd68cdcc6dd0759b5cef0da87
6
+ metadata.gz: 579fdf4bd68f15c0af345b9609bd968c01b7f6444c64c82c95fca1d115e25867f1d2fe8fba9d95da49b212362aac58deb2f5925685ec33ea97ee5c90ee796605
7
+ data.tar.gz: cd6718343a7a72fdcb8775c2e432ab33043863fd76ba06819255bd36c0cb1598d107e834b69e73c5e637044456a610ae120f0390c979252ac21de966125f51a6
data/src/ZOHOCRMSDK6_0.rb CHANGED
@@ -1299,4 +1299,6 @@ require 'com/zoho/api/authenticator/oauth_token.rb'
1299
1299
  require 'com/zoho/api/authenticator/token.rb'
1300
1300
  require 'com/zoho/api/authenticator/store/db_store.rb'
1301
1301
  require 'com/zoho/api/authenticator/store/token_store.rb'
1302
- require 'com/zoho/api/authenticator/store/file_store.rb'
1302
+ require 'com/zoho/api/authenticator/store/file_store.rb'
1303
+ require 'com/zoho/crm/api/users/count_handler.rb'
1304
+ require 'com/zoho/crm/api/users/count_wrapper.rb'
@@ -1,4 +1,3 @@
1
- require 'mysql2'
2
1
  require_relative 'token_store'
3
2
  require_relative '../oauth_token'
4
3
  require_relative '../../../crm/api/util/constants'
@@ -17,6 +16,7 @@ module ZOHOCRMSDK
17
16
  # @param password A String containing the DataBase password.
18
17
  # @param port_number A String containing the DataBase port number.
19
18
  def initialize(host: Constants::MYSQL_HOST, database_name: Constants::MYSQL_DATABASE_NAME , table_name: Constants::MYSQL_TABLE_NAME, user_name: Constants::MYSQL_USER_NAME, password: '', port_number: Constants::MYSQL_PORT_NUMBER )
19
+ require 'mysql2' unless Object.const_defined?(:Mysql2)
20
20
  @host = host
21
21
  @database_name = database_name
22
22
  @table_name = table_name
@@ -1,5 +1,3 @@
1
- require 'webrick/log'
2
- require 'webrick/accesslog'
3
1
  require 'logger'
4
2
 
5
3
  module ZOHOCRMSDK
@@ -14,74 +12,52 @@ module ZOHOCRMSDK
14
12
  def self.initialize(level:, path:nil)
15
13
  Log.new(level, path)
16
14
  end
17
-
18
- end
19
15
 
20
- class SilentLogger < WEBrick::BasicLog
21
- def log(level, data) end # override log method for avoiding logs
16
+ def as_logger
17
+ return Logger.new(File.open(File::NULL, 'w')) if self.level == Levels::OFF || self.path.nil? || self.path == ""
18
+
19
+ logger = self.path.nil? ? Logger.new(STDOUT) : Logger.new(self.path)
20
+ logger.level = self.level ? Object.const_get("Logger::#{self.level}") : Logger::INFO
21
+ logger
22
+ end
22
23
  end
23
24
 
25
+ # Generic logger to support passing in a custom logger i.e. your application's Rails.logger
24
26
  class SDKLogger
25
- @@path = nil
26
- @@level = nil
27
- @@log_levels_precedence = { 'FATAL' => 1, 'SEVERE' => 1, 'ERROR' => 2, 'WARN' => 3, 'INFO' => 4, 'ALL' => 5, 'DEBUG' => 5 , 'OFF' => 5}
28
- @@logger = nil
29
-
30
27
  def self.initialize(log)
31
-
32
- if (!log.level.nil? && (log.level == Levels::OFF || log.path.nil? || log.path == "") )
33
- sdk_logger = SilentLogger.new.log(log.level, log.path)
34
- else
35
- if !log.level.nil? && log.level != Levels::OFF && !log.path.nil? && log.path.length > 0
36
- if @@log_levels_precedence.key? log.level
37
- File.new(log.path, 'w') unless File.exist? log.path if log.path != nil
38
- sdk_logger = WEBrick::BasicLog.new(log.path, @@log_levels_precedence[log.level])
39
- end
40
- end
41
-
42
- if !log.level.nil? && log.path.nil?
43
- if @@log_levels_precedence.key? log.level
44
- sdk_logger = WEBrick::BasicLog.new(nil, @@log_levels_precedence[log.level])
45
- end
46
- end
47
- end
48
-
49
- @@logger = sdk_logger
28
+ return @logger = log.as_logger if log.is_a?(Log)
29
+ @logger = log
50
30
  rescue StandardError => e
51
31
  raise SDKException.new(nil, Constants::LOGGER_INITIALIZATION_ERROR, nil, e)
52
32
  end
53
33
 
54
34
  def self.info(message)
55
- @@logger&.info(Time.new.to_s + ' ' + message)
35
+ @logger&.info("#{Time.new} #{message}")
56
36
  end
57
37
 
58
38
  def self.error(message, exception = nil)
59
- unless exception.nil?
60
- exception.to_s
61
- message = message + exception.to_s + exception.backtrace.join("\n")
62
- end
63
- @@logger&.error(Time.new.to_s + ' ' + message)
39
+ message = "#{message}#{exception}#{exception.backtrace&.join("\n")}" unless exception.nil?
40
+ @logger&.error("#{Time.new} #{message}")
64
41
  end
65
42
 
66
43
  def self.warn(message)
67
- @@logger&.warn(Time.new.to_s + ' ' + message)
44
+ @logger&.warn("#{Time.new} #{message}")
68
45
  end
69
46
 
70
47
  def self.severe(message, exception = nil)
71
-
72
- message = message + exception.to_s + exception.backtrace.join("\n") unless exception.nil? || exception.backtrace.nil?
73
- @@logger&.fatal(Time.new.to_s + ' ' + message)
48
+ message = "#{message}#{exception}#{exception.backtrace&.join("\n")}" unless exception.nil?
49
+ @logger&.fatal("#{Time.new} #{message}")
74
50
  end
75
51
  end
76
52
  end
77
53
 
78
54
  module Levels
79
- SEVERE = 'SEVERE'
55
+ SEVERE = 'FATAL'
80
56
  INFO = 'INFO'
81
- WARNING = 'WARNING'
57
+ WARNING = 'WARN'
82
58
  ERROR = 'ERROR'
83
59
  DEBUG = 'DEBUG'
84
- ALL = 'ALL'
60
+ ALL = 'DEBUG'
85
61
  OFF = 'OFF'
86
62
  FATAL = 'FATAL'
87
63
  end
@@ -2,8 +2,10 @@ require_relative '../util/model'
2
2
 
3
3
  module ZOHOCRMSDK
4
4
  module CustomViews
5
+ require_relative 'action_handler'
5
6
  class ActionWrapper
6
7
  include Util::Model
8
+ include ActionHandler
7
9
 
8
10
  # Creates an instance of ActionWrapper
9
11
  def initialize
@@ -286,18 +286,18 @@ module ZOHOCRMSDK
286
286
  end
287
287
 
288
288
  # The method to get the favorite
289
- # @return A Boolean value
289
+ # @return A Integer value
290
290
 
291
291
  def favorite
292
292
  @favorite
293
293
  end
294
294
 
295
295
  # The method to set the value to favorite
296
- # @param favorite [Boolean] A Boolean
296
+ # @param favorite [Integer] A Integer
297
297
 
298
298
  def favorite=(favorite)
299
- if favorite!=nil and ! [true, false].include?favorite
300
- raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: favorite EXPECTED TYPE: Boolean', nil, nil)
299
+ if favorite!=nil and !favorite.is_a? Integer
300
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: favorite EXPECTED TYPE: Integer', nil, nil)
301
301
  end
302
302
  @favorite = favorite
303
303
  @key_modified['favorite'] = 1
@@ -56,11 +56,76 @@ module ZOHOCRMSDK
56
56
  handler_instance.api_call(ResponseHandler.name, 'application/json')
57
57
  end
58
58
 
59
+ # The method to change sort order of custom views
60
+ # @param request [BodyWrapper] An instance of BodyWrapper
61
+ # @param param_instance [ParameterMap] An instance of ParameterMap
62
+ # @return An instance of APIResponse
63
+ # @raise SDKException
64
+ def change_sort_order_of_custom_views(request, param_instance=nil)
65
+ if request!=nil and !request.is_a? BodyWrapper
66
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
67
+ end
68
+ if param_instance!=nil and !param_instance.is_a? ParameterMap
69
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
70
+ end
71
+ handler_instance = Handler::CommonAPIHandler.new
72
+ api_path = ''
73
+ api_path = api_path + '/crm/v6/settings/custom_views/actions/change_sort'
74
+ handler_instance.api_path = api_path
75
+ handler_instance.http_method = Constants::REQUEST_METHOD_PUT
76
+ handler_instance.category_method = 'UPDATE'
77
+ handler_instance.content_type = 'application/json'
78
+ handler_instance.request = request
79
+ handler_instance.mandatory_checker = true
80
+ handler_instance.param = param_instance
81
+ require_relative 'action_handler'
82
+ handler_instance.api_call(ActionHandler.name, 'application/json')
83
+ end
84
+
85
+ # The method to change sort order of custom view
86
+ # @param id [Integer] A Integer
87
+ # @param request [BodyWrapper] An instance of BodyWrapper
88
+ # @param param_instance [ParameterMap] An instance of ParameterMap
89
+ # @return An instance of APIResponse
90
+ # @raise SDKException
91
+ def change_sort_order_of_custom_view(id, request, param_instance=nil)
92
+ if !id.is_a? Integer
93
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
94
+ end
95
+ if request!=nil and !request.is_a? BodyWrapper
96
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
97
+ end
98
+ if param_instance!=nil and !param_instance.is_a? ParameterMap
99
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
100
+ end
101
+ handler_instance = Handler::CommonAPIHandler.new
102
+ api_path = ''
103
+ api_path = api_path + '/crm/v6/settings/custom_views/'
104
+ api_path = api_path + id.to_s
105
+ api_path = api_path + '/actions/change_sort'
106
+ handler_instance.api_path = api_path
107
+ handler_instance.http_method = Constants::REQUEST_METHOD_PUT
108
+ handler_instance.category_method = 'UPDATE'
109
+ handler_instance.content_type = 'application/json'
110
+ handler_instance.request = request
111
+ handler_instance.param = param_instance
112
+ require_relative 'action_handler'
113
+ handler_instance.api_call(ActionHandler.name, 'application/json')
114
+ end
115
+
59
116
  class GetCustomViewsParam
60
117
  @@module_1 = Param.new('module', 'com.zoho.crm.api.CustomViews.GetCustomViewsParam')
61
118
  def self.module_1
62
119
  @@module_1
63
120
  end
121
+ @@page = Param.new('page', 'com.zoho.crm.api.CustomViews.GetCustomViewsParam')
122
+ def self.page
123
+ @@page
124
+ end
125
+ @@per_page = Param.new('per_page', 'com.zoho.crm.api.CustomViews.GetCustomViewsParam')
126
+ def self.per_page
127
+ @@per_page
128
+ end
64
129
  end
65
130
 
66
131
  class GetCustomViewParam
@@ -70,6 +135,20 @@ module ZOHOCRMSDK
70
135
  end
71
136
  end
72
137
 
138
+ class ChangeSortOrderOfCustomViewsParam
139
+ @@module_1 = Param.new('module', 'com.zoho.crm.api.CustomViews.ChangeSortOrderOfCustomViewsParam')
140
+ def self.module_1
141
+ @@module_1
142
+ end
143
+ end
144
+
145
+ class ChangeSortOrderOfCustomViewParam
146
+ @@module_1 = Param.new('module', 'com.zoho.crm.api.CustomViews.ChangeSortOrderOfCustomViewParam')
147
+ def self.module_1
148
+ @@module_1
149
+ end
150
+ end
151
+
73
152
  end
74
153
  end
75
154
  end
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -14,6 +14,7 @@ module ZOHOCRMSDK
14
14
  @bounced_time = nil
15
15
  @bounced_reason = nil
16
16
  @category = nil
17
+ @sub_category = nil
17
18
  @key_modified = Hash.new
18
19
  end
19
20
 
@@ -143,6 +144,24 @@ module ZOHOCRMSDK
143
144
  @key_modified['category'] = 1
144
145
  end
145
146
 
147
+ # The method to get the sub_category
148
+ # @return A String value
149
+
150
+ def sub_category
151
+ @sub_category
152
+ end
153
+
154
+ # The method to set the value to sub_category
155
+ # @param sub_category [String] A String
156
+
157
+ def sub_category=(sub_category)
158
+ if sub_category!=nil and !sub_category.is_a? String
159
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sub_category EXPECTED TYPE: String', nil, nil)
160
+ end
161
+ @sub_category = sub_category
162
+ @key_modified['sub_category'] = 1
163
+ end
164
+
146
165
  # The method to check if the user has modified the given key
147
166
  # @param key [String] A String
148
167
  # @return A Integer value
@@ -1,8 +1,8 @@
1
1
  require_relative '../inventory_templates/folder'
2
+ require_relative '../inventory_templates/inventory_templates'
2
3
  require_relative '../inventory_templates/module_map'
3
4
  require_relative '../inventory_templates/user'
4
5
  require_relative '../send_mail/template'
5
- require_relative '../inventory_templates/inventory_templates'
6
6
  require_relative '../util/model'
7
7
 
8
8
  module ZOHOCRMSDK
@@ -7,11 +7,30 @@ module ZOHOCRMSDK
7
7
 
8
8
  # Creates an instance of Detail
9
9
  def initialize
10
+ @available_count = nil
10
11
  @limits = nil
11
12
  @used_count = nil
12
13
  @key_modified = Hash.new
13
14
  end
14
15
 
16
+ # The method to get the available_count
17
+ # @return An instance of Limit
18
+
19
+ def available_count
20
+ @available_count
21
+ end
22
+
23
+ # The method to set the value to available_count
24
+ # @param available_count [Limit] An instance of Limit
25
+
26
+ def available_count=(available_count)
27
+ if available_count!=nil and !available_count.is_a? Limit
28
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: available_count EXPECTED TYPE: Limit', nil, nil)
29
+ end
30
+ @available_count = available_count
31
+ @key_modified['available_count'] = 1
32
+ end
33
+
15
34
  # The method to get the limits
16
35
  # @return An instance of Limit
17
36
 
@@ -70,6 +70,20 @@ module ZOHOCRMSDK
70
70
  handler_instance.api_call(ResponseHandler.name, 'application/json')
71
71
  end
72
72
 
73
+ # The method to get user licences count
74
+ # @return An instance of APIResponse
75
+ # @raise SDKException
76
+ def get_user_licences_count
77
+ handler_instance = Handler::CommonAPIHandler.new
78
+ api_path = ''
79
+ api_path = api_path + '/crm/v6/__features/user_licenses'
80
+ handler_instance.api_path = api_path
81
+ handler_instance.http_method = Constants::REQUEST_METHOD_GET
82
+ handler_instance.category_method = 'READ'
83
+ require_relative 'response_handler'
84
+ handler_instance.api_call(ResponseHandler.name, 'application/json')
85
+ end
86
+
73
87
  class GetFeatureDetailsParam
74
88
  @@module_1 = Param.new('module', 'com.zoho.crm.api.Features.GetFeatureDetailsParam')
75
89
  def self.module_1
@@ -5,6 +5,7 @@ require_relative '../fields/crypt'
5
5
  require_relative '../fields/currency'
6
6
  require_relative '../fields/email_parser'
7
7
  require_relative '../fields/external'
8
+ require_relative '../fields/fields'
8
9
  require_relative '../fields/file_upolad_option'
9
10
  require_relative '../fields/formula'
10
11
  require_relative '../fields/hipaa_compliance'
@@ -25,7 +26,6 @@ require_relative '../fields/unique'
25
26
  require_relative '../fields/view_type'
26
27
  require_relative '../modules/minified_module'
27
28
  require_relative '../modules/sharing_properties'
28
- require_relative '../fields/fields'
29
29
  require_relative '../util/model'
30
30
 
31
31
  module ZOHOCRMSDK
@@ -77,18 +77,18 @@ module ZOHOCRMSDK
77
77
  end
78
78
 
79
79
  # The method to get the tab_traversal
80
- # @return A Integer value
80
+ # @return A String value
81
81
 
82
82
  def tab_traversal
83
83
  @tab_traversal
84
84
  end
85
85
 
86
86
  # The method to set the value to tab_traversal
87
- # @param tab_traversal [Integer] A Integer
87
+ # @param tab_traversal [String] A String
88
88
 
89
89
  def tab_traversal=(tab_traversal)
90
- if tab_traversal!=nil and !tab_traversal.is_a? Integer
91
- raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: tab_traversal EXPECTED TYPE: Integer', nil, nil)
90
+ if tab_traversal!=nil and !tab_traversal.is_a? String
91
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: tab_traversal EXPECTED TYPE: String', nil, nil)
92
92
  end
93
93
  @tab_traversal = tab_traversal
94
94
  @key_modified['tab_traversal'] = 1
@@ -1,6 +1,6 @@
1
+ require_relative '../fields/lookup'
1
2
  require_relative '../fields/query_details'
2
3
  require_relative '../fields/show_fields'
3
- require_relative '../fields/lookup'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -5,6 +5,7 @@ require_relative '../fields/crypt'
5
5
  require_relative '../fields/currency'
6
6
  require_relative '../fields/email_parser'
7
7
  require_relative '../fields/external'
8
+ require_relative '../fields/fields'
8
9
  require_relative '../fields/file_upolad_option'
9
10
  require_relative '../fields/formula'
10
11
  require_relative '../fields/hipaa_compliance'
@@ -23,7 +24,6 @@ require_relative '../fields/textarea'
23
24
  require_relative '../fields/tooltip'
24
25
  require_relative '../fields/unique'
25
26
  require_relative '../fields/view_type'
26
- require_relative '../fields/fields'
27
27
  require_relative '../util/model'
28
28
 
29
29
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/choice'
5
5
  require_relative '../util/model'
6
6
 
@@ -6,11 +6,13 @@ module ZOHOCRMSDK
6
6
  require_relative 'action_response'
7
7
  require_relative 'response_handler'
8
8
  require_relative 'action_handler'
9
+ require_relative 'count_handler'
9
10
  class APIException
10
11
  include Util::Model
11
12
  include ActionResponse
12
13
  include ResponseHandler
13
14
  include ActionHandler
15
+ include CountHandler
14
16
 
15
17
  # Creates an instance of APIException
16
18
  def initialize
@@ -0,0 +1,12 @@
1
+ module ZOHOCRMSDK
2
+ module Users
3
+ module CountHandler
4
+
5
+ # Creates an instance of CountHandler
6
+ def initialize
7
+ end
8
+
9
+
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,65 @@
1
+ require_relative '../util/model'
2
+
3
+ module ZOHOCRMSDK
4
+ module Users
5
+ require_relative 'count_handler'
6
+ class CountWrapper
7
+ include Util::Model
8
+ include CountHandler
9
+
10
+ # Creates an instance of CountWrapper
11
+ def initialize
12
+ @count = nil
13
+ @key_modified = Hash.new
14
+ end
15
+
16
+ # The method to get the count
17
+ # @return A Integer value
18
+
19
+ def count
20
+ @count
21
+ end
22
+
23
+ # The method to set the value to count
24
+ # @param count [Integer] A Integer
25
+
26
+ def count=(count)
27
+ if count!=nil and !count.is_a? Integer
28
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: count EXPECTED TYPE: Integer', nil, nil)
29
+ end
30
+ @count = count
31
+ @key_modified['count'] = 1
32
+ end
33
+
34
+ # The method to check if the user has modified the given key
35
+ # @param key [String] A String
36
+ # @return A Integer value
37
+
38
+ def is_key_modified(key)
39
+ if key!=nil and !key.is_a? String
40
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
41
+ end
42
+ if @key_modified.key?(key)
43
+ return @key_modified[key]
44
+ end
45
+
46
+ nil
47
+ end
48
+
49
+ # The method to mark the given key as modified
50
+ # @param key [String] A String
51
+ # @param modification [Integer] A Integer
52
+
53
+ def set_key_modified(key, modification)
54
+ if key!=nil and !key.is_a? String
55
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
56
+ end
57
+ if modification!=nil and !modification.is_a? Integer
58
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
59
+ end
60
+ @key_modified[key] = modification
61
+ end
62
+
63
+ end
64
+ end
65
+ end
@@ -1,5 +1,5 @@
1
- require_relative '../tags/tag'
2
1
  require_relative '../record/record'
2
+ require_relative '../tags/tag'
3
3
  require_relative '../util/choice'
4
4
  require_relative '../util/model'
5
5
 
@@ -171,6 +171,25 @@ module ZOHOCRMSDK
171
171
  handler_instance.api_call(ResponseHandler.name, 'application/json')
172
172
  end
173
173
 
174
+ # The method to users count
175
+ # @param param_instance [ParameterMap] An instance of ParameterMap
176
+ # @return An instance of APIResponse
177
+ # @raise SDKException
178
+ def users_count(param_instance=nil)
179
+ if param_instance!=nil and !param_instance.is_a? ParameterMap
180
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
181
+ end
182
+ handler_instance = Handler::CommonAPIHandler.new
183
+ api_path = ''
184
+ api_path = api_path + '/crm/v6/users/actions/count'
185
+ handler_instance.api_path = api_path
186
+ handler_instance.http_method = Constants::REQUEST_METHOD_GET
187
+ handler_instance.category_method = 'READ'
188
+ handler_instance.param = param_instance
189
+ require_relative 'count_handler'
190
+ handler_instance.api_call(CountHandler.name, 'application/json')
191
+ end
192
+
174
193
  class GetUsersParam
175
194
  @@type = Param.new('type', 'com.zoho.crm.api.Users.GetUsersParam')
176
195
  def self.type
@@ -204,6 +223,13 @@ module ZOHOCRMSDK
204
223
  end
205
224
  end
206
225
 
226
+ class UsersCountParam
227
+ @@type = Param.new('type', 'com.zoho.crm.api.Users.UsersCountParam')
228
+ def self.type
229
+ @@type
230
+ end
231
+ end
232
+
207
233
  end
208
234
  end
209
235
  end
@@ -175,7 +175,7 @@ module ZOHOCRMSDK
175
175
 
176
176
  ZOHO_SDK = 'X-ZOHO-SDK'
177
177
 
178
- SDK_VERSION = '1.0.0'
178
+ SDK_VERSION = '2.0.0'
179
179
 
180
180
  SET_CONTENT_TYPE_HEADER = ['/crm/bulk/v6/read', '/crm/bulk/v6/write']
181
181