quickbase_client 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +34 -0
- data/README.rdoc +5 -1
- data/lib/QuickBaseClient.rb +32 -7
- metadata +4 -2
data/CHANGES
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
== Change History
|
2
|
+
|
3
|
+
1.0.16 - 07/14/2011 - Added support for new API_CopyMasterDetail call.
|
4
|
+
|
5
|
+
1.0.15 - 06/02/2011 - Fixed downloadFile problem caused by httpclient update.
|
6
|
+
|
7
|
+
1.0.14 - 05/29/2011 - Added support for new List-User field type.
|
8
|
+
|
9
|
+
1.0.13 - 05/10/2011 - Added getRecords(): get an array of records using record ids.
|
10
|
+
|
11
|
+
1.0.12 - 05/08/2011 - Added findRecords and find_records getFilteredRecords aliases.
|
12
|
+
|
13
|
+
1.0.11 - 05/08/2011 - Fixed a problem with getFilteredRecords().
|
14
|
+
|
15
|
+
1.0.10 - 03/27/2011 - Can now use require 'quickbase_client' instead of require 'QuickBaseClient'.
|
16
|
+
|
17
|
+
1.0.9 - 03/26/2011 - Added aliases, getCSVForReport(), makeCSVFileForReport(), getCriteriaForQuery().
|
18
|
+
|
19
|
+
1.0.8 - 03/11/2011 - Fixed a problem with getApplicationVariables().
|
20
|
+
|
21
|
+
1.0.7 - 03/06/2011 - Fixed a problem with formatTimeOfDay().
|
22
|
+
|
23
|
+
1.0.5 - 02/22/2011 - Updated API_GetUserRole for optional inclgrps parameter.
|
24
|
+
|
25
|
+
1.0.4 - 12/24/2010 - Fixed formatDate() error.
|
26
|
+
|
27
|
+
1.0.3 - 12/07/2010 - Various small method improvements.
|
28
|
+
|
29
|
+
1.0.2 - 12/05/2010 - Added removeFileAttachment().
|
30
|
+
|
31
|
+
1.0.1 - 11/26/2010 - Will now use HTTPClient instead of Net::HTTP, if you already have HTTPClient.
|
32
|
+
|
33
|
+
1.0.0 - 11/21/2010 - First push to RubyGems.org.
|
34
|
+
|
data/README.rdoc
CHANGED
@@ -14,7 +14,9 @@ require 'QuickBaseClient'
|
|
14
14
|
|
15
15
|
qbc = QuickBase::Client.new("quickbase_username","quickbase_password")
|
16
16
|
|
17
|
-
qbc.grantedDBs{|db|
|
17
|
+
qbc.grantedDBs{|db|
|
18
|
+
puts "dbid: #{db.dbinfo.dbid}, dbname: #{db.dbinfo.dbname}"
|
19
|
+
}
|
18
20
|
|
19
21
|
|
20
22
|
== Documentation
|
@@ -29,6 +31,8 @@ More information about the QuickBase Client is available here -
|
|
29
31
|
|
30
32
|
== Change History
|
31
33
|
|
34
|
+
1.0.16 - 07/14/2011 - Added support for new API_CopyMasterDetail call.
|
35
|
+
|
32
36
|
1.0.15 - 06/02/2011 - Fixed downloadFile problem caused by httpclient update.
|
33
37
|
|
34
38
|
1.0.14 - 05/29/2011 - Added support for new List-User field type.
|
data/lib/QuickBaseClient.rb
CHANGED
@@ -35,9 +35,9 @@ module QuickBase
|
|
35
35
|
class Client
|
36
36
|
|
37
37
|
attr_reader :access, :accessid, :accountLimit, :accountUsage, :action, :admin
|
38
|
-
attr_reader :adminOnly, :ancestorappid, :app, :appdbid, :appdata, :applicationLimit, :applicationUsage, :authenticationXML
|
39
|
-
attr_reader :cacheSchemas, :cachedSchemas, :chdbids, :choice, :clist, :create, :createapptoken, :createdTime
|
40
|
-
attr_reader :dbid, :dbidForRequestURL, :dbname, :delete, :
|
38
|
+
attr_reader :adminOnly, :ancestorappid, :app, :appdbid, :appdata, :applicationLimit, :applicationUsage, :apptoken, :authenticationXML
|
39
|
+
attr_reader :cacheSchemas, :cachedSchemas, :chdbids, :choice, :clist, :copyfid, :create, :createapptoken, :createdTime
|
40
|
+
attr_reader :databases, :dbdesc, :dbid, :dbidForRequestURL, :dbname, :delete, :destrid, :disprec, :domain, :downLoadFileURL
|
41
41
|
attr_reader :email, :errcode, :errdetail, :errtext, :excludeparents, :externalAuth, :fform
|
42
42
|
attr_reader :fid, :fids, :field, :fields, :field_data, :field_data_list, :fieldTypeLabelMap, :fieldValue, :fileContents, :fileUploadToken, :firstName, :fmt, :fname, :fnames, :fvlist
|
43
43
|
attr_reader :hours, :HTML, :httpConnection, :id, :ignoreError, :includeancestors
|
@@ -46,16 +46,16 @@ class Client
|
|
46
46
|
attr_reader :mgrID, :mgrName, :mode, :modify, :name
|
47
47
|
attr_reader :newappname, :newowner, :newdbdesc, :newdbid, :newdbname
|
48
48
|
attr_reader :num_fields, :numMatches, :num_records, :num_recs_added, :num_records_deleted
|
49
|
-
attr_reader :num_recs_input, :num_recs_updated, :numadded
|
49
|
+
attr_reader :num_recs_input, :num_recs_updated, :numadded, :numCreated
|
50
50
|
attr_reader :numRecords, :numremoved, :oldestancestorappid, :options, :org, :page, :pages, :pagebody
|
51
|
-
attr_reader :pageid, :pagename, :pagetype, :password, :permissions
|
51
|
+
attr_reader :pageid, :pagename, :pagetype, :parentrid, :password, :permissions
|
52
52
|
attr_reader :printRequestsAndResponses, :properties, :qarancestorappid, :qdbapi, :qbhost
|
53
|
-
attr_reader :qid, :qname, :queries, :query, :record, :records, :records_csv
|
53
|
+
attr_reader :qid, :qname, :queries, :query, :record, :records, :records_csv, :recurse, :relfids
|
54
54
|
attr_reader :requestHeaders, :requestNextAllowedTime, :requestSucceeded, :requestTime, :requestURL, :requestXML
|
55
55
|
attr_reader :responseElement, :responseElementText, :responseElements, :responseXML
|
56
56
|
attr_reader :responseXMLdoc, :rid, :rids, :role, :roleid, :rolename, :roles, :saveviews, :screenName
|
57
57
|
attr_reader :serverStatus, :serverVersion , :serverUsers, :serverGroups, :serverDatabases, :serverUptime, :serverUpdays
|
58
|
-
attr_reader :showAppData, :skipfirst, :slist, :standardRequestHeaders, :status, :stopOnError
|
58
|
+
attr_reader :showAppData, :skipfirst, :slist, :sourcerid, :standardRequestHeaders, :status, :stopOnError
|
59
59
|
attr_reader :table, :tables, :ticket, :type, :udata, :uname, :update_id, :user, :userid
|
60
60
|
attr_reader :username, :users, :value, :validFieldProperties, :validFieldTypes, :variables
|
61
61
|
attr_reader :varname, :version, :vid, :view, :withembeddedtables
|
@@ -1938,6 +1938,31 @@ class Client
|
|
1938
1938
|
# API_CloneDatabase, using the active table id.
|
1939
1939
|
def _cloneDatabase( *args ) cloneDatabase( @dbid, args ) end
|
1940
1940
|
|
1941
|
+
# API_CopyMasterDetail
|
1942
|
+
def copyMasterDetail( dbid, destrid, sourcerid, copyfid = nil, recurse = nil, relfids = nil )
|
1943
|
+
|
1944
|
+
raise "copyfid must be specified when destrid is 0." if destrid == "0" and copyfid.nil?
|
1945
|
+
|
1946
|
+
@dbid, @destrid, @sourcerid, @copyfid, @recurse, @relfids = dbid, destrid, sourcerid, copyfid, recurse, relfids
|
1947
|
+
|
1948
|
+
xmlRequestData = toXML( :destrid, @destrid)
|
1949
|
+
xmlRequestData << toXML( :sourcerid, @sourcerid )
|
1950
|
+
xmlRequestData << toXML( :copyfid, @copyfid ) if @copyfid
|
1951
|
+
xmlRequestData << toXML( :recurse, @recurse ) if @recurse
|
1952
|
+
xmlRequestData << toXML( :relfids, @relfids ) if @relfids
|
1953
|
+
|
1954
|
+
sendRequest( :copyMasterDetail, xmlRequestData )
|
1955
|
+
|
1956
|
+
@parentrid = getResponseValue( :parentrid )
|
1957
|
+
@numCreated = getResponseValue( :numCreated )
|
1958
|
+
|
1959
|
+
return self if @chainAPIcalls
|
1960
|
+
return @parentrid, @numCreated
|
1961
|
+
end
|
1962
|
+
|
1963
|
+
# API_CopyMasterDetail, using the active table id.
|
1964
|
+
def _copyMasterDetail( *args ) copyMasterDetail( @dbid, args ) end
|
1965
|
+
|
1941
1966
|
# API_CreateDatabase
|
1942
1967
|
def createDatabase( dbname, dbdesc, createapptoken = "1" )
|
1943
1968
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quickbase_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-07-14 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Wraps the QuickBase HTTP API and adds classes and methods to minimize
|
15
15
|
the amount of code need to get useful things done. This is a minimal subset of the
|
@@ -18,10 +18,12 @@ email:
|
|
18
18
|
executables: []
|
19
19
|
extensions: []
|
20
20
|
extra_rdoc_files:
|
21
|
+
- CHANGES
|
21
22
|
- LICENSE
|
22
23
|
- README.rdoc
|
23
24
|
files:
|
24
25
|
- .yardopts
|
26
|
+
- CHANGES
|
25
27
|
- LICENSE
|
26
28
|
- README.rdoc
|
27
29
|
- lib/QuickBaseClient.rb
|