asana 0.9.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.swagger-codegen-ignore +3 -0
- data/.travis.yml +2 -1
- data/Appraisals +2 -35
- data/Gemfile +2 -0
- data/README.md +3 -51
- data/VERSION +1 -0
- data/asana.gemspec +3 -3
- data/examples/Gemfile.lock +10 -10
- data/lib/asana/client.rb +10 -10
- data/lib/asana/http_client.rb +8 -2
- data/lib/asana/resource_includes/attachment_uploading.rb +14 -7
- data/lib/asana/resource_includes/collection.rb +5 -0
- data/lib/asana/resource_includes/resource.rb +0 -4
- data/lib/asana/resources/attachment.rb +2 -5
- data/lib/asana/resources/batch_api.rb +15 -0
- data/lib/asana/resources/custom_field_settings.rb +2 -5
- data/lib/asana/resources/custom_fields.rb +2 -5
- data/lib/asana/resources/events.rb +28 -0
- data/lib/asana/resources/gen/attachments_base.rb +56 -0
- data/lib/asana/resources/gen/batch_api_base.rb +30 -0
- data/lib/asana/resources/gen/custom_field_settings_base.rb +46 -0
- data/lib/asana/resources/gen/custom_fields_base.rb +124 -0
- data/lib/asana/resources/gen/events_base.rb +32 -0
- data/lib/asana/resources/gen/jobs_base.rb +30 -0
- data/lib/asana/resources/gen/organization_exports_base.rb +44 -0
- data/lib/asana/resources/gen/portfolio_memberships_base.rb +63 -0
- data/lib/asana/resources/gen/portfolios_base.rb +173 -0
- data/lib/asana/resources/gen/project_memberships_base.rb +46 -0
- data/lib/asana/resources/gen/project_statuses_base.rb +69 -0
- data/lib/asana/resources/gen/projects_base.rb +259 -0
- data/lib/asana/resources/gen/sections_base.rb +108 -0
- data/lib/asana/resources/gen/stories_base.rb +84 -0
- data/lib/asana/resources/gen/tags_base.rb +129 -0
- data/lib/asana/resources/gen/tasks_base.rb +425 -0
- data/lib/asana/resources/gen/team_memberships_base.rb +77 -0
- data/lib/asana/resources/gen/teams_base.rb +88 -0
- data/lib/asana/resources/gen/typeahead_base.rb +35 -0
- data/lib/asana/resources/gen/user_task_lists_base.rb +44 -0
- data/lib/asana/resources/gen/users_base.rb +88 -0
- data/lib/asana/resources/gen/webhooks_base.rb +70 -0
- data/lib/asana/resources/gen/workspace_memberships_base.rb +60 -0
- data/lib/asana/resources/gen/workspaces_base.rb +82 -0
- data/lib/asana/resources/job.rb +2 -3
- data/lib/asana/resources/organization_export.rb +2 -5
- data/lib/asana/resources/portfolio.rb +2 -5
- data/lib/asana/resources/portfolio_membership.rb +2 -5
- data/lib/asana/resources/project.rb +2 -5
- data/lib/asana/resources/project_membership.rb +2 -5
- data/lib/asana/resources/project_status.rb +2 -5
- data/lib/asana/resources/section.rb +18 -22
- data/lib/asana/resources/story.rb +2 -5
- data/lib/asana/resources/tag.rb +2 -5
- data/lib/asana/resources/task.rb +5 -5
- data/lib/asana/resources/team.rb +2 -5
- data/lib/asana/resources/team_membership.rb +26 -0
- data/lib/asana/resources/typeahead.rb +22 -0
- data/lib/asana/resources/user.rb +2 -5
- data/lib/asana/resources/user_task_list.rb +2 -5
- data/lib/asana/resources/webhook.rb +2 -5
- data/lib/asana/resources/workspace.rb +2 -6
- data/lib/asana/resources/workspace_membership.rb +32 -0
- data/lib/asana/version.rb +1 -1
- data/samples/attachments_sample.yaml +41 -0
- data/samples/batch_api_sample.yaml +11 -0
- data/samples/custom_field_settings_sample.yaml +21 -0
- data/samples/custom_fields_sample.yaml +81 -0
- data/samples/events_sample.yaml +11 -0
- data/samples/jobs_sample.yaml +11 -0
- data/samples/organization_exports_sample.yaml +21 -0
- data/samples/portfolio_memberships_sample.yaml +31 -0
- data/samples/portfolios_sample.yaml +121 -0
- data/samples/project_memberships_sample.yaml +21 -0
- data/samples/project_statuses_sample.yaml +41 -0
- data/samples/projects_sample.yaml +181 -0
- data/samples/sections_sample.yaml +71 -0
- data/samples/stories_sample.yaml +51 -0
- data/samples/tags_sample.yaml +81 -0
- data/samples/tasks_sample.yaml +261 -0
- data/samples/team_memberships_sample.yaml +41 -0
- data/samples/teams_sample.yaml +51 -0
- data/samples/typeahead_sample.yaml +11 -0
- data/samples/user_task_lists_sample.yaml +21 -0
- data/samples/users_sample.yaml +51 -0
- data/samples/webhooks_sample.yaml +41 -0
- data/samples/workspace_memberships_sample.yaml +31 -0
- data/samples/workspaces_sample.yaml +51 -0
- data/swagger_templates/api.mustache +41 -0
- data/swagger_templates/api_doc.mustache +12 -0
- data/swagger_templates/ruby-config.json +6 -0
- metadata +70 -13
@@ -0,0 +1,261 @@
|
|
1
|
+
tasks:
|
2
|
+
add_dependencies_for_task: >-
|
3
|
+
require 'asana'
|
4
|
+
|
5
|
+
|
6
|
+
client = Asana::Client.new do |c|
|
7
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
result = client.tasks.add_dependencies_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
12
|
+
add_dependents_for_task: >-
|
13
|
+
require 'asana'
|
14
|
+
|
15
|
+
|
16
|
+
client = Asana::Client.new do |c|
|
17
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
result = client.tasks.add_dependents_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
22
|
+
add_followers_for_task: >-
|
23
|
+
require 'asana'
|
24
|
+
|
25
|
+
|
26
|
+
client = Asana::Client.new do |c|
|
27
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
result = client.tasks.add_followers_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
32
|
+
add_project_for_task: >-
|
33
|
+
require 'asana'
|
34
|
+
|
35
|
+
|
36
|
+
client = Asana::Client.new do |c|
|
37
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
result = client.tasks.add_project_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
42
|
+
add_tag_for_task: >-
|
43
|
+
require 'asana'
|
44
|
+
|
45
|
+
|
46
|
+
client = Asana::Client.new do |c|
|
47
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
result = client.tasks.add_tag_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
52
|
+
create_subtask_for_task: >-
|
53
|
+
require 'asana'
|
54
|
+
|
55
|
+
|
56
|
+
client = Asana::Client.new do |c|
|
57
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
58
|
+
end
|
59
|
+
|
60
|
+
|
61
|
+
result = client.tasks.create_subtask_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
62
|
+
create_task: >-
|
63
|
+
require 'asana'
|
64
|
+
|
65
|
+
|
66
|
+
client = Asana::Client.new do |c|
|
67
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
result = client.tasks.create_task(field: "value", field: "value", options: {pretty: true})
|
72
|
+
delete_task: >-
|
73
|
+
require 'asana'
|
74
|
+
|
75
|
+
|
76
|
+
client = Asana::Client.new do |c|
|
77
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
78
|
+
end
|
79
|
+
|
80
|
+
|
81
|
+
result = client.tasks.delete_task(task_gid: 'task_gid', options: {pretty: true})
|
82
|
+
duplicate_task: >-
|
83
|
+
require 'asana'
|
84
|
+
|
85
|
+
|
86
|
+
client = Asana::Client.new do |c|
|
87
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
88
|
+
end
|
89
|
+
|
90
|
+
|
91
|
+
result = client.tasks.duplicate_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
92
|
+
get_dependencies_for_task: >-
|
93
|
+
require 'asana'
|
94
|
+
|
95
|
+
|
96
|
+
client = Asana::Client.new do |c|
|
97
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
98
|
+
end
|
99
|
+
|
100
|
+
|
101
|
+
result = client.tasks.get_dependencies_for_task(task_gid: 'task_gid', param: "value", param: "value", options: {pretty: true})
|
102
|
+
get_dependents_for_task: >-
|
103
|
+
require 'asana'
|
104
|
+
|
105
|
+
|
106
|
+
client = Asana::Client.new do |c|
|
107
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
108
|
+
end
|
109
|
+
|
110
|
+
|
111
|
+
result = client.tasks.get_dependents_for_task(task_gid: 'task_gid', param: "value", param: "value", options: {pretty: true})
|
112
|
+
get_subtasks_for_task: >-
|
113
|
+
require 'asana'
|
114
|
+
|
115
|
+
|
116
|
+
client = Asana::Client.new do |c|
|
117
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
118
|
+
end
|
119
|
+
|
120
|
+
|
121
|
+
result = client.tasks.get_subtasks_for_task(task_gid: 'task_gid', param: "value", param: "value", options: {pretty: true})
|
122
|
+
get_task: >-
|
123
|
+
require 'asana'
|
124
|
+
|
125
|
+
|
126
|
+
client = Asana::Client.new do |c|
|
127
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
128
|
+
end
|
129
|
+
|
130
|
+
|
131
|
+
result = client.tasks.get_task(task_gid: 'task_gid', param: "value", param: "value", options: {pretty: true})
|
132
|
+
get_tasks: >-
|
133
|
+
require 'asana'
|
134
|
+
|
135
|
+
|
136
|
+
client = Asana::Client.new do |c|
|
137
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
138
|
+
end
|
139
|
+
|
140
|
+
|
141
|
+
result = client.tasks.get_tasks(param: "value", param: "value", options: {pretty: true})
|
142
|
+
get_tasks_for_project: >-
|
143
|
+
require 'asana'
|
144
|
+
|
145
|
+
|
146
|
+
client = Asana::Client.new do |c|
|
147
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
148
|
+
end
|
149
|
+
|
150
|
+
|
151
|
+
result = client.tasks.get_tasks_for_project(project_gid: 'project_gid', param: "value", param: "value", options: {pretty: true})
|
152
|
+
get_tasks_for_section: >-
|
153
|
+
require 'asana'
|
154
|
+
|
155
|
+
|
156
|
+
client = Asana::Client.new do |c|
|
157
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
158
|
+
end
|
159
|
+
|
160
|
+
|
161
|
+
result = client.tasks.get_tasks_for_section(section_gid: 'section_gid', param: "value", param: "value", options: {pretty: true})
|
162
|
+
get_tasks_for_tag: >-
|
163
|
+
require 'asana'
|
164
|
+
|
165
|
+
|
166
|
+
client = Asana::Client.new do |c|
|
167
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
168
|
+
end
|
169
|
+
|
170
|
+
|
171
|
+
result = client.tasks.get_tasks_for_tag(tag_gid: 'tag_gid', param: "value", param: "value", options: {pretty: true})
|
172
|
+
get_tasks_for_user_task_list: >-
|
173
|
+
require 'asana'
|
174
|
+
|
175
|
+
|
176
|
+
client = Asana::Client.new do |c|
|
177
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
178
|
+
end
|
179
|
+
|
180
|
+
|
181
|
+
result = client.tasks.get_tasks_for_user_task_list(user_task_list_gid: 'user_task_list_gid', param: "value", param: "value", options: {pretty: true})
|
182
|
+
remove_dependencies_for_task: >-
|
183
|
+
require 'asana'
|
184
|
+
|
185
|
+
|
186
|
+
client = Asana::Client.new do |c|
|
187
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
188
|
+
end
|
189
|
+
|
190
|
+
|
191
|
+
result = client.tasks.remove_dependencies_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
192
|
+
remove_dependents_for_task: >-
|
193
|
+
require 'asana'
|
194
|
+
|
195
|
+
|
196
|
+
client = Asana::Client.new do |c|
|
197
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
198
|
+
end
|
199
|
+
|
200
|
+
|
201
|
+
result = client.tasks.remove_dependents_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
202
|
+
remove_follower_for_task: >-
|
203
|
+
require 'asana'
|
204
|
+
|
205
|
+
|
206
|
+
client = Asana::Client.new do |c|
|
207
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
208
|
+
end
|
209
|
+
|
210
|
+
|
211
|
+
result = client.tasks.remove_follower_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
212
|
+
remove_project_for_task: >-
|
213
|
+
require 'asana'
|
214
|
+
|
215
|
+
|
216
|
+
client = Asana::Client.new do |c|
|
217
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
218
|
+
end
|
219
|
+
|
220
|
+
|
221
|
+
result = client.tasks.remove_project_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
222
|
+
remove_tag_for_task: >-
|
223
|
+
require 'asana'
|
224
|
+
|
225
|
+
|
226
|
+
client = Asana::Client.new do |c|
|
227
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
228
|
+
end
|
229
|
+
|
230
|
+
|
231
|
+
result = client.tasks.remove_tag_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
232
|
+
search_tasks_for_workspace: >-
|
233
|
+
require 'asana'
|
234
|
+
|
235
|
+
|
236
|
+
client = Asana::Client.new do |c|
|
237
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
238
|
+
end
|
239
|
+
|
240
|
+
|
241
|
+
result = client.tasks.search_tasks_for_workspace(workspace_gid: 'workspace_gid', param: "value", param: "value", options: {pretty: true})
|
242
|
+
set_parent_for_task: >-
|
243
|
+
require 'asana'
|
244
|
+
|
245
|
+
|
246
|
+
client = Asana::Client.new do |c|
|
247
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
248
|
+
end
|
249
|
+
|
250
|
+
|
251
|
+
result = client.tasks.set_parent_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
252
|
+
update_task: >-
|
253
|
+
require 'asana'
|
254
|
+
|
255
|
+
|
256
|
+
client = Asana::Client.new do |c|
|
257
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
258
|
+
end
|
259
|
+
|
260
|
+
|
261
|
+
result = client.tasks.update_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
@@ -0,0 +1,41 @@
|
|
1
|
+
teammemberships:
|
2
|
+
get_team_membership: >-
|
3
|
+
require 'asana'
|
4
|
+
|
5
|
+
|
6
|
+
client = Asana::Client.new do |c|
|
7
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
result = client.team_memberships.get_team_membership(team_membership_gid: 'team_membership_gid', param: "value", param: "value", options: {pretty: true})
|
12
|
+
get_team_memberships: >-
|
13
|
+
require 'asana'
|
14
|
+
|
15
|
+
|
16
|
+
client = Asana::Client.new do |c|
|
17
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
result = client.team_memberships.get_team_memberships(param: "value", param: "value", options: {pretty: true})
|
22
|
+
get_team_memberships_for_team: >-
|
23
|
+
require 'asana'
|
24
|
+
|
25
|
+
|
26
|
+
client = Asana::Client.new do |c|
|
27
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
result = client.team_memberships.get_team_memberships_for_team(team_gid: 'team_gid', param: "value", param: "value", options: {pretty: true})
|
32
|
+
get_team_memberships_for_user: >-
|
33
|
+
require 'asana'
|
34
|
+
|
35
|
+
|
36
|
+
client = Asana::Client.new do |c|
|
37
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
result = client.team_memberships.get_team_memberships_for_user(user_gid: 'user_gid', workspace: ''workspace_example'', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,51 @@
|
|
1
|
+
teams:
|
2
|
+
add_user_for_team: >-
|
3
|
+
require 'asana'
|
4
|
+
|
5
|
+
|
6
|
+
client = Asana::Client.new do |c|
|
7
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
result = client.teams.add_user_for_team(team_gid: 'team_gid', field: "value", field: "value", options: {pretty: true})
|
12
|
+
get_team: >-
|
13
|
+
require 'asana'
|
14
|
+
|
15
|
+
|
16
|
+
client = Asana::Client.new do |c|
|
17
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
result = client.teams.get_team(team_gid: 'team_gid', param: "value", param: "value", options: {pretty: true})
|
22
|
+
get_teams_for_organization: >-
|
23
|
+
require 'asana'
|
24
|
+
|
25
|
+
|
26
|
+
client = Asana::Client.new do |c|
|
27
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
result = client.teams.get_teams_for_organization(workspace_gid: 'workspace_gid', param: "value", param: "value", options: {pretty: true})
|
32
|
+
get_teams_for_user: >-
|
33
|
+
require 'asana'
|
34
|
+
|
35
|
+
|
36
|
+
client = Asana::Client.new do |c|
|
37
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
result = client.teams.get_teams_for_user(user_gid: 'user_gid', organization: ''organization_example'', param: "value", param: "value", options: {pretty: true})
|
42
|
+
remove_user_for_team: >-
|
43
|
+
require 'asana'
|
44
|
+
|
45
|
+
|
46
|
+
client = Asana::Client.new do |c|
|
47
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
result = client.teams.remove_user_for_team(team_gid: 'team_gid', field: "value", field: "value", options: {pretty: true})
|
@@ -0,0 +1,11 @@
|
|
1
|
+
typeahead:
|
2
|
+
typeahead_for_workspace: >-
|
3
|
+
require 'asana'
|
4
|
+
|
5
|
+
|
6
|
+
client = Asana::Client.new do |c|
|
7
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
result = client.typeahead.typeahead_for_workspace(workspace_gid: 'workspace_gid', resource_type: ''resource_type_example'', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,21 @@
|
|
1
|
+
usertasklists:
|
2
|
+
get_user_task_list: >-
|
3
|
+
require 'asana'
|
4
|
+
|
5
|
+
|
6
|
+
client = Asana::Client.new do |c|
|
7
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
result = client.user_task_lists.get_user_task_list(user_task_list_gid: 'user_task_list_gid', param: "value", param: "value", options: {pretty: true})
|
12
|
+
get_user_task_list_for_user: >-
|
13
|
+
require 'asana'
|
14
|
+
|
15
|
+
|
16
|
+
client = Asana::Client.new do |c|
|
17
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
result = client.user_task_lists.get_user_task_list_for_user(user_gid: 'user_gid', workspace: ''workspace_example'', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,51 @@
|
|
1
|
+
users:
|
2
|
+
get_favorites_for_user: >-
|
3
|
+
require 'asana'
|
4
|
+
|
5
|
+
|
6
|
+
client = Asana::Client.new do |c|
|
7
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
result = client.users.get_favorites_for_user(user_gid: 'user_gid', resource_type: ''resource_type_example'', workspace: ''workspace_example'', param: "value", param: "value", options: {pretty: true})
|
12
|
+
get_user: >-
|
13
|
+
require 'asana'
|
14
|
+
|
15
|
+
|
16
|
+
client = Asana::Client.new do |c|
|
17
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
result = client.users.get_user(user_gid: 'user_gid', param: "value", param: "value", options: {pretty: true})
|
22
|
+
get_users: >-
|
23
|
+
require 'asana'
|
24
|
+
|
25
|
+
|
26
|
+
client = Asana::Client.new do |c|
|
27
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
result = client.users.get_users(param: "value", param: "value", options: {pretty: true})
|
32
|
+
get_users_for_team: >-
|
33
|
+
require 'asana'
|
34
|
+
|
35
|
+
|
36
|
+
client = Asana::Client.new do |c|
|
37
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
result = client.users.get_users_for_team(team_gid: 'team_gid', param: "value", param: "value", options: {pretty: true})
|
42
|
+
get_users_for_workspace: >-
|
43
|
+
require 'asana'
|
44
|
+
|
45
|
+
|
46
|
+
client = Asana::Client.new do |c|
|
47
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
result = client.users.get_users_for_workspace(workspace_gid: 'workspace_gid', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,41 @@
|
|
1
|
+
webhooks:
|
2
|
+
create_webhook: >-
|
3
|
+
require 'asana'
|
4
|
+
|
5
|
+
|
6
|
+
client = Asana::Client.new do |c|
|
7
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
result = client.webhooks.create_webhook(field: "value", field: "value", options: {pretty: true})
|
12
|
+
delete_webhook: >-
|
13
|
+
require 'asana'
|
14
|
+
|
15
|
+
|
16
|
+
client = Asana::Client.new do |c|
|
17
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
result = client.webhooks.delete_webhook(webhook_gid: 'webhook_gid', options: {pretty: true})
|
22
|
+
get_webhook: >-
|
23
|
+
require 'asana'
|
24
|
+
|
25
|
+
|
26
|
+
client = Asana::Client.new do |c|
|
27
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
result = client.webhooks.get_webhook(webhook_gid: 'webhook_gid', param: "value", param: "value", options: {pretty: true})
|
32
|
+
get_webhooks: >-
|
33
|
+
require 'asana'
|
34
|
+
|
35
|
+
|
36
|
+
client = Asana::Client.new do |c|
|
37
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
result = client.webhooks.get_webhooks(workspace: ''workspace_example'', param: "value", param: "value", options: {pretty: true})
|