zohoProjects 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/{LICENSE.txt → LICENSE} +2 -2
- data/README.md +3 -3
- data/lib/projects/api/BugsAPI.rb +46 -1
- data/lib/projects/api/DocumentsAPI.rb +1 -1
- data/lib/projects/api/TasksAPI.rb +101 -1
- data/lib/projects/model/Bug.rb +2 -2
- data/lib/projects/model/Buglog.rb +1 -1
- data/lib/projects/model/Customfield.rb +120 -0
- data/lib/projects/model/Defaultfield.rb +141 -0
- data/lib/projects/model/Task.rb +31 -4
- data/lib/projects/parser/BugParser.rb +211 -2
- data/lib/projects/parser/TaskParser.rb +69 -8
- data/lib/projects/service/ZohoProject.rb +1 -1
- data/lib/zohoProjects.rb +2 -0
- data/lib/zohoProjects/version.rb +1 -1
- data/zohoProjects.gemspec +3 -2
- metadata +29 -32
- checksums.yaml +0 -15
- data/lib/test/ProjectsTest.rb +0 -321
metadata
CHANGED
@@ -1,43 +1,38 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zohoProjects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Zoho Corp.
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-
|
12
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &18198300 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '1.6'
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
|
-
version_requirements:
|
23
|
-
requirements:
|
24
|
-
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.6'
|
24
|
+
version_requirements: *18198300
|
27
25
|
- !ruby/object:Gem::Dependency
|
28
26
|
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &18196400 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
30
29
|
requirements:
|
31
30
|
- - ! '>='
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '0'
|
34
33
|
type: :development
|
35
34
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
requirements:
|
38
|
-
- - ! '>='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
35
|
+
version_requirements: *18196400
|
41
36
|
description: ! 'Zoho Projects API lets, users/developers extend their web applications
|
42
37
|
to push or pull data into or from Zoho Projects for application mashups. - See more
|
43
38
|
at: http://cms.zohocorp.com/export/zoho/projects/help/rest-api/zohoprojectsapi.html'
|
@@ -49,28 +44,32 @@ extra_rdoc_files: []
|
|
49
44
|
files:
|
50
45
|
- Gemfile
|
51
46
|
- Gemfile.lock
|
52
|
-
- LICENSE
|
53
|
-
- README.md
|
47
|
+
- LICENSE
|
54
48
|
- Rakefile
|
49
|
+
- README.md
|
50
|
+
- zohoProjects.gemspec
|
51
|
+
- lib/zohoProjects.rb
|
52
|
+
- lib/zohoProjects/version.rb
|
55
53
|
- lib/projects/api/API.rb
|
56
|
-
- lib/projects/api/BugsAPI.rb
|
57
|
-
- lib/projects/api/DocumentsAPI.rb
|
58
|
-
- lib/projects/api/EventsAPI.rb
|
59
|
-
- lib/projects/api/FoldersAPI.rb
|
60
|
-
- lib/projects/api/ForumsAPI.rb
|
61
|
-
- lib/projects/api/MilestonesAPI.rb
|
62
54
|
- lib/projects/api/PortalAPI.rb
|
63
55
|
- lib/projects/api/ProjectsAPI.rb
|
56
|
+
- lib/projects/api/MilestonesAPI.rb
|
64
57
|
- lib/projects/api/TasklistsAPI.rb
|
65
58
|
- lib/projects/api/TasksAPI.rb
|
66
59
|
- lib/projects/api/TimesheetsAPI.rb
|
60
|
+
- lib/projects/api/FoldersAPI.rb
|
61
|
+
- lib/projects/api/DocumentsAPI.rb
|
62
|
+
- lib/projects/api/EventsAPI.rb
|
63
|
+
- lib/projects/api/BugsAPI.rb
|
64
|
+
- lib/projects/api/ForumsAPI.rb
|
67
65
|
- lib/projects/api/UsersAPI.rb
|
68
|
-
- lib/projects/exception/ProjectsException.rb
|
69
66
|
- lib/projects/model/Activity.rb
|
70
67
|
- lib/projects/model/Bug.rb
|
71
68
|
- lib/projects/model/Buglog.rb
|
72
69
|
- lib/projects/model/Category.rb
|
73
70
|
- lib/projects/model/Comment.rb
|
71
|
+
- lib/projects/model/Customfield.rb
|
72
|
+
- lib/projects/model/Defaultfield.rb
|
74
73
|
- lib/projects/model/Document.rb
|
75
74
|
- lib/projects/model/Event.rb
|
76
75
|
- lib/projects/model/Folder.rb
|
@@ -98,38 +97,36 @@ files:
|
|
98
97
|
- lib/projects/parser/MilestonesParser.rb
|
99
98
|
- lib/projects/parser/PortalParser.rb
|
100
99
|
- lib/projects/parser/ProjectParser.rb
|
101
|
-
- lib/projects/parser/TaskParser.rb
|
102
100
|
- lib/projects/parser/TasklistParser.rb
|
101
|
+
- lib/projects/parser/TaskParser.rb
|
103
102
|
- lib/projects/parser/TimesheetParser.rb
|
104
103
|
- lib/projects/parser/UserParser.rb
|
105
|
-
- lib/projects/service/ZohoProject.rb
|
106
104
|
- lib/projects/util/ZohoHTTPClient.rb
|
107
|
-
- lib/
|
108
|
-
- lib/
|
109
|
-
- lib/zohoProjects/version.rb
|
110
|
-
- zohoProjects.gemspec
|
105
|
+
- lib/projects/exception/ProjectsException.rb
|
106
|
+
- lib/projects/service/ZohoProject.rb
|
111
107
|
homepage: ''
|
112
108
|
licenses:
|
113
109
|
- MIT
|
114
|
-
metadata: {}
|
115
110
|
post_install_message:
|
116
111
|
rdoc_options: []
|
117
112
|
require_paths:
|
118
113
|
- lib
|
119
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
120
116
|
requirements:
|
121
117
|
- - ! '>='
|
122
118
|
- !ruby/object:Gem::Version
|
123
119
|
version: '0'
|
124
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
125
122
|
requirements:
|
126
123
|
- - ! '>='
|
127
124
|
- !ruby/object:Gem::Version
|
128
125
|
version: '0'
|
129
126
|
requirements: []
|
130
127
|
rubyforge_project:
|
131
|
-
rubygems_version:
|
128
|
+
rubygems_version: 1.8.11
|
132
129
|
signing_key:
|
133
|
-
specification_version:
|
130
|
+
specification_version: 3
|
134
131
|
summary: Wrapper for Zoho Projects.
|
135
132
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
OWU1ZWNhYWY5OGQ3ODU1YTk3N2FhMThjNjk2YzU4Mzg5YjMzYmEyYg==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YmVhOTk3MGY5YjIyMmVjMTdjMzU2NDdkNjAyZWQ4MWY3NmI2NGNiYQ==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MWZkNGRmZWQzMzRlNWY4OWE3NmQxMzkwOWQ0YmRlYzA4ZTJkZWRiYWI2ZmRh
|
10
|
-
ZmVmOTdkOGI1MjA0ZDE3MDg1ZDVjMzQzOWM4MjgyMDllYTlhZTM2MGU5MDA4
|
11
|
-
ZjVkM2EyNDRjYjE2YmFlODE5YzQ0NDc0YmFlMDg2MmE2NWRmNGE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MzgwMTc3ZjU5YzNmMGRlMDIxYjA5MmZkYzk2NjU1ZDg4ZmM0ODE5NGM5MDMz
|
14
|
-
ZTcwMDZmOTg2MzE2YWFlODQ4MjczZTBhZDE4Nzc3ZGFiODFkN2IxM2NjNDk5
|
15
|
-
ZTJiNTE4MjY0YzAwZGFkOTk0OGE5YzUyMTRhOTU5NmM2YjM0ZWE=
|
data/lib/test/ProjectsTest.rb
DELETED
@@ -1,321 +0,0 @@
|
|
1
|
-
# $Id$
|
2
|
-
require "zohoProjects"
|
3
|
-
|
4
|
-
begin
|
5
|
-
|
6
|
-
portalsAPI = PortalAPI.new("{auth_token}")
|
7
|
-
portals = portalsAPI.getPortals
|
8
|
-
|
9
|
-
portal_id = portals[0].getId
|
10
|
-
|
11
|
-
|
12
|
-
zohoProjects = ZohoProjects.new("{auth_token}",portal_id)
|
13
|
-
|
14
|
-
projectAPI = zohoProjects.getProjectsAPI
|
15
|
-
|
16
|
-
milestoneAPI = zohoProjects.getMilestonesAPI
|
17
|
-
|
18
|
-
tasklistAPI = zohoProjects.getTasklistsAPI
|
19
|
-
|
20
|
-
tasksAPI = zohoProjects.getTasklistsAPI
|
21
|
-
|
22
|
-
eventsAPI = zohoProjects.getEventsAPI
|
23
|
-
|
24
|
-
foldersAPI = zohoProjects.getFoldersAPI
|
25
|
-
|
26
|
-
documentsAPI = zohoProjects.getDocumentsAPI
|
27
|
-
|
28
|
-
forumsAPI = zohoProjects.getForumsAPI
|
29
|
-
|
30
|
-
usersAPI = zohoProjects.getUsersAPI
|
31
|
-
|
32
|
-
bugsAPI = zohoProjects.getBugsAPI
|
33
|
-
|
34
|
-
forumsAPI = zohoProjects.getForumsAPI
|
35
|
-
|
36
|
-
timesheetsAPI = zohoProjects.getTimesheetsAPI
|
37
|
-
|
38
|
-
projectAPI = ProjectsAPI.new("{auth_token}",portal_id)
|
39
|
-
|
40
|
-
projectAll = projectAPI1.getProjects
|
41
|
-
|
42
|
-
queryMap = Hash.new
|
43
|
-
queryMap["status"] = "active"
|
44
|
-
|
45
|
-
project = projectAPI.getProjects(queryMap)
|
46
|
-
|
47
|
-
project_id = projectAll[0].getId
|
48
|
-
|
49
|
-
project_ownerId = projectAll[0].getOwnerId
|
50
|
-
|
51
|
-
project = Project.new
|
52
|
-
project.setName("Test Project")
|
53
|
-
project.setDescription("This is a Test Project")
|
54
|
-
|
55
|
-
create = projectAPI.createProject(project)
|
56
|
-
|
57
|
-
get = projectAPI.get(projectAll[0].getId)
|
58
|
-
|
59
|
-
get.setName("Test Project");
|
60
|
-
get.setDescription("This is a Test Project")
|
61
|
-
get.setStatus("active")
|
62
|
-
update = projectAPI.updateProject(get)
|
63
|
-
|
64
|
-
activity = projectAPI.getProjectActivities(project_id)
|
65
|
-
|
66
|
-
status = projectAPI.getProjectStatuses(project_id)
|
67
|
-
|
68
|
-
status1 = Status.new
|
69
|
-
status1.setContent("New Status Added")
|
70
|
-
status2 = projectAPI.addProjectStatus(project_id, status1)
|
71
|
-
|
72
|
-
milestonesAPI = MilestonesAPI.new("{auth_token}",portal_id)
|
73
|
-
|
74
|
-
milestone = milestonesAPI.getMilestones(project_id)
|
75
|
-
|
76
|
-
milestone_id = milestone.getId
|
77
|
-
|
78
|
-
milestone1 = milestonesAPI.get(project_id,milestone_id)
|
79
|
-
|
80
|
-
result = milestonesAPI.delete(project_id,milestone_id)
|
81
|
-
|
82
|
-
milestone = Milestone.new
|
83
|
-
milestone.setName("My first Updated Milestone")
|
84
|
-
milestone.setStartDate("07-01-2014")
|
85
|
-
milestone.setEndDate("07-20-2014")
|
86
|
-
milestone.setOwnerId(project_ownerId.to_i)
|
87
|
-
milestone.setFlag("internal")
|
88
|
-
|
89
|
-
milestone1 = milestonesAPI.create(project_id, milestone)
|
90
|
-
|
91
|
-
milestone = milestonesAPI.update(project_id, milestone1)
|
92
|
-
|
93
|
-
puts milestonesAPI.updateStatus(project_id, milestone_id, 1)
|
94
|
-
|
95
|
-
tasklistsAPI = TasklistsAPI.new("{auth_token}",portal_id)
|
96
|
-
|
97
|
-
queryMap = Hash.new
|
98
|
-
queryMap["flag"] = "internal"
|
99
|
-
|
100
|
-
tasklists = tasklistsAPI.getTasklists(project_id, queryMap)
|
101
|
-
|
102
|
-
result = tasklistsAPI.delete(project_id, tasklists[0].getId)
|
103
|
-
|
104
|
-
tasklist = Tasklist.new()
|
105
|
-
tasklist.setName("Model")
|
106
|
-
tasklist.setFlag("internal")
|
107
|
-
|
108
|
-
milestone1 = Milestone.new()
|
109
|
-
milestone1.setId(milestone_id)
|
110
|
-
tasklist.setMilestone(milestone1)
|
111
|
-
|
112
|
-
createTasklist = tasklistsAPI.create(project_id, tasklist)
|
113
|
-
|
114
|
-
tasklists[0].setName("Model 1")
|
115
|
-
tasklists[0].setFlag("internal")
|
116
|
-
tasklists[0].setStatus("completed")
|
117
|
-
|
118
|
-
tasklist = tasklistsAPI.update(project_id, tasklists[0])
|
119
|
-
|
120
|
-
queryMap = Hash.new
|
121
|
-
queryMap["range"] = 1
|
122
|
-
|
123
|
-
tasksAPI = TasksAPI.new("{auth_token}",portal_id)
|
124
|
-
|
125
|
-
tasks = tasksAPI.getTasks(project_id, queryMap)
|
126
|
-
|
127
|
-
tasklistId = tasks[0].getTasklist.getId
|
128
|
-
|
129
|
-
tasklistTasks = tasksAPI.getTasklistTasks(project_id, tasklistId, nil)
|
130
|
-
|
131
|
-
taskId = tasklistTasks[0].getId
|
132
|
-
getTask = tasksAPI.get(project_id, taskId)
|
133
|
-
|
134
|
-
task = tasks[0]
|
135
|
-
puts task.getName
|
136
|
-
|
137
|
-
owner1 = task.getOwners
|
138
|
-
|
139
|
-
owners = Array.new
|
140
|
-
owner = Owner.new
|
141
|
-
owner.setId(owner1.getId)
|
142
|
-
owners.push(owner)
|
143
|
-
|
144
|
-
task.setOwners(owners)
|
145
|
-
task.setName("complete TasksAPI 1")
|
146
|
-
task.setStartDate("06-23-2014")
|
147
|
-
task.setEndDate("06-30-2014")
|
148
|
-
|
149
|
-
createTask = tasksAPI.create(project_id, task)
|
150
|
-
|
151
|
-
updateTask = tasksAPI.update(project_id, task)
|
152
|
-
|
153
|
-
deleteTask = tasksAPI.delete(project_id, String(task.getId))
|
154
|
-
|
155
|
-
queryMap = Hash.new
|
156
|
-
queryMap["user_list"] = "all"
|
157
|
-
queryMap["view_type"] = "month"
|
158
|
-
queryMap["date"] = "06-23-2014"
|
159
|
-
queryMap["bill_status"] = "Billable"
|
160
|
-
queryMap["component_type"] = "task"
|
161
|
-
|
162
|
-
timesheetsAPI = TimesheetsAPI.new("{auth_token}",portal_id)
|
163
|
-
|
164
|
-
timeLogs = timesheetsAPI.getTimeLogs(project_id, queryMap)
|
165
|
-
|
166
|
-
tasklog = timeLogs[0].getTasklogs
|
167
|
-
|
168
|
-
tasklog[0].setDate("07-02-2014")
|
169
|
-
|
170
|
-
addTasklog = timesheetsAPI.addTasklog(project_id, tasklog[0])
|
171
|
-
|
172
|
-
updateTasklog = timesheetsAPI.updateTasklog(project_id, tasklog[0])
|
173
|
-
|
174
|
-
deleteTasklog = timesheetsAPI.deleteTasklog(project_id, String(tasklog[0].getTaskId), String(tasklog[0].getId))
|
175
|
-
|
176
|
-
buglog = timeLogs[0].getBuglogs[0]
|
177
|
-
|
178
|
-
buglog.setDate("06-28-2014")
|
179
|
-
buglog.setBillStatus("Billable")
|
180
|
-
buglog.setHours("02:02")
|
181
|
-
|
182
|
-
addBuglog = timesheetsAPI.addBuglog(project_id, buglog)
|
183
|
-
|
184
|
-
updateBuglog = timesheetsAPI.updateBuglog(project_id, buglog)
|
185
|
-
|
186
|
-
deleteBuglog = timesheetsAPI.deleteBuglog(project_id, String(buglog.getBugId), String(buglog.getId))
|
187
|
-
|
188
|
-
generallog = timeLogs[0].getGenerallogs[0]
|
189
|
-
generallog.setDate("06-25-2014")
|
190
|
-
generallog.setBillStatus("Billable")
|
191
|
-
generallog.setName("Complete API files New")
|
192
|
-
generallog.setHours(1)
|
193
|
-
generallog.setNotes("ss")
|
194
|
-
|
195
|
-
addGenerallog = timesheetsAPI.addGenerallog(project_id, generallog)
|
196
|
-
|
197
|
-
updateGenerallog = timesheetsAPI.updateGenerallog(project_id, generallog)
|
198
|
-
|
199
|
-
deleteGenerallog = timesheetsAPI.deleteGenerallog(project_id, String(generallog.getId))
|
200
|
-
|
201
|
-
bugsAPI = BugsAPI.new("{auth_token}",portal_id)
|
202
|
-
|
203
|
-
bugs = bugsAPI.getBugs(project_id, nil)
|
204
|
-
bugId = String(bugs[0].getId)
|
205
|
-
getBug = bugsAPI.get(project_id, bugId)
|
206
|
-
|
207
|
-
getBug.setTitle("Every thing is ok")
|
208
|
-
getBug.setDescription("This is a bug")
|
209
|
-
getBug.setDueDate("06-26-2014")
|
210
|
-
|
211
|
-
createBug = bugsAPI.create(project_id, getBug)
|
212
|
-
|
213
|
-
updateBug = bugsAPI.update(project_id, getBug)
|
214
|
-
|
215
|
-
deleteBug = bugsAPI.delete(project_id, bugId)
|
216
|
-
|
217
|
-
queryMap = Hash.new
|
218
|
-
queryMap["status"] = "open"
|
219
|
-
|
220
|
-
eventsAPI = EventsAPI.new("{auth_token}",portal_id)
|
221
|
-
events = eventsAPI.getEvents(project_id, queryMap)
|
222
|
-
puts events[0].getParticipants
|
223
|
-
|
224
|
-
event = events[0]
|
225
|
-
|
226
|
-
event.setTitle("Wrapper publish")
|
227
|
-
event.setHour("2")
|
228
|
-
event.setMinutes("30")
|
229
|
-
event.setAMPM("pm")
|
230
|
-
event.setScheduledOn("06-24-2014")
|
231
|
-
|
232
|
-
add = eventsAPI.add(project_id, event)
|
233
|
-
|
234
|
-
updateEvent = eventsAPI.update(project_id, event)
|
235
|
-
|
236
|
-
deleteEvent = eventsAPI.delete(project_id, String(event.getId))
|
237
|
-
|
238
|
-
foldersAPI = FoldersAPI.new("{auth_token}",portal_id)
|
239
|
-
folders = foldersAPI.getFolders(project_id)
|
240
|
-
folderId = folders[0].getId
|
241
|
-
folder = folders[0]
|
242
|
-
folder.setName("Sample Updated")
|
243
|
-
|
244
|
-
addFolder = foldersAPI.addFolder(project_id, folder);
|
245
|
-
|
246
|
-
updateFolder = foldersAPI.updateFolder(project_id, folder)
|
247
|
-
|
248
|
-
deleteFolder = foldersAPI.deleteFolder(project_id, String(updateFolder.getId))
|
249
|
-
|
250
|
-
documentsAPI = DocumentsAPI.new("{auth_token}",portal_id)
|
251
|
-
|
252
|
-
documents = documentsAPI.getDocuments(project_id, nil)
|
253
|
-
|
254
|
-
documentId = String(documents[0].getId)
|
255
|
-
|
256
|
-
getDocument = documentsAPI.get(project_id, documentId, nil)
|
257
|
-
|
258
|
-
folderId = documents[0].getFolder.getId
|
259
|
-
|
260
|
-
uploaddoc = Array.new
|
261
|
-
file = File.new("File url")
|
262
|
-
uploaddoc.push(file)
|
263
|
-
uploaddoc.push(file)
|
264
|
-
|
265
|
-
getDocument.setFolderId(folderId)
|
266
|
-
getDocument.setDescription("File Updated !!!")
|
267
|
-
getDocument.setUploaddoc(uploaddoc)
|
268
|
-
|
269
|
-
addDocument = documentsAPI.add(project_id, getDocument)
|
270
|
-
|
271
|
-
updateDocument = documentsAPI.update(project_id, getDocument)
|
272
|
-
|
273
|
-
deleteDocument = documentsAPI.delete(project_id, documentId)
|
274
|
-
|
275
|
-
forumsAPI = ForumsAPI.new("{auth_token}",portal_id)
|
276
|
-
|
277
|
-
categories = forumsAPI.getCategories(project_id)
|
278
|
-
categoryId = categories[0].getId
|
279
|
-
|
280
|
-
forums = forumsAPI.getForums(project_id, nil)
|
281
|
-
|
282
|
-
forumId = forums[0].getId
|
283
|
-
|
284
|
-
forum = Forum.new
|
285
|
-
uploadFile = Array.new
|
286
|
-
|
287
|
-
file1 = File.new("File url")
|
288
|
-
uploadFile.push(file1);
|
289
|
-
uploadFile.push(file1);
|
290
|
-
|
291
|
-
forum.setName("API Discussion New")
|
292
|
-
forum.setContent("Discuss about projects API wrappers")
|
293
|
-
forum.setUploadfile(uploadFile)
|
294
|
-
forum.setCategoryId(categoryId)
|
295
|
-
|
296
|
-
addForum = forumsAPI.add(project_id, forum)
|
297
|
-
|
298
|
-
updateForum = forumsAPI.update(project_id, forum)
|
299
|
-
|
300
|
-
deleteForum = forumsAPI.delete(project_id, String(addForum.getId))
|
301
|
-
|
302
|
-
category.setName("API")
|
303
|
-
|
304
|
-
addCategory = forumsAPI.addCategory(projectId, category)
|
305
|
-
|
306
|
-
comments = forumsAPI.getComments(project_id, forumId,nil);
|
307
|
-
|
308
|
-
comment = comments[0]
|
309
|
-
|
310
|
-
comment=Comment.new
|
311
|
-
comment.setContent("URL changes not added in the document.")
|
312
|
-
|
313
|
-
addComment = forumsAPI.addComment(project_id, forumId, comment)
|
314
|
-
|
315
|
-
usersAPI = UsersAPI.new("{auth_token}",portal_id)
|
316
|
-
users = usersAPI.getUsers(project_id)
|
317
|
-
|
318
|
-
rescue ProjectsException => pe
|
319
|
-
puts "Code: " + String(pe.getCode)
|
320
|
-
puts "Message: " + pe.getMessage
|
321
|
-
end
|