sugarcrm_rest 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +1 -1
- data/lib/sugarcrm_rest/version.rb +1 -1
- data/lib/sugarcrm_rest.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a5b18767557cc5a9690182ecd85b79b1fa791203086381b2a7dfa2d6ef7e7fd
|
4
|
+
data.tar.gz: aad29dfd73cbaf51984a53480cb7741d0aa4f65bb23462b05dcf525fbeff854a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e81d1f164586e522f7292070c99a7d664d2ef3246a47b5e7aa7b67b1e511b1be092a482824953013d30f41c0bc6fa0b86ecaedc3ffbfef770efdabdce86e039e
|
7
|
+
data.tar.gz: 88fa55c2ce95943de79da77696020dfcef23621b5744ff8067a40fbcb3ae8058f9b4e963650e1bc3fb3f99d31b14c9f16ee7109e5152514624df5d125173e8aa
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ Or install it yourself as:
|
|
23
23
|
connect=SugarcrmRest::Connect.new(consumer_key,consumer_secret,username,password,platform,url) #Provide the connection object
|
24
24
|
SugarcrmRest::Fetch_Data.fetch_single_record(connect,module_name,id) #Give the record with specified id from specified module
|
25
25
|
SugarcrmRest::Fetch_Data.fetch_all_data(connect,module_name,offset,maxnum) #Fetch data from specified module according to offset
|
26
|
-
SugarcrmRest::Fetch_Data.fetch_data_with_filters(connect,module_name,filter_json,fields=["no"]
|
26
|
+
SugarcrmRest::Fetch_Data.fetch_data_with_filters(connect,module_name,filter_json,offset=0,fields=["no"]) #Return a json object of data having specified fields by applying specified filters.The filter format is filter=[{"name":"example"},{"age":{"$gte":age}}]
|
27
27
|
SugarcrmRest::Fetch_Data.upload_document(connect,id,path) #upload the file having specified path and id to doccument module
|
28
28
|
|
29
29
|
SugarcrmRest::Update_Sugar.create_new_record(connect,module_name,params) #Creating new record in specified module
|
data/lib/sugarcrm_rest.rb
CHANGED
@@ -131,7 +131,7 @@ class Fetch_Data
|
|
131
131
|
return result.to_json
|
132
132
|
end
|
133
133
|
|
134
|
-
def self.fetch_data_with_filters(connect,module_name,filter_json,fields=["no"]
|
134
|
+
def self.fetch_data_with_filters(connect,module_name,filter_json,offset=0,fields=["no"])
|
135
135
|
filter=filter_json
|
136
136
|
|
137
137
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugarcrm_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sruthi PN
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|