asana 0.10.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +24 -0
- data/.github/workflows/pubilsh-to-rubygem.yml +18 -0
- data/.github/workflows/publish-to-github-releases.yml +16 -0
- data/.gitignore +0 -1
- data/.ruby-version +1 -1
- data/.swagger-codegen-ignore +0 -1
- data/Appraisals +2 -35
- data/Gemfile +2 -0
- data/Gemfile.lock +174 -0
- data/README.md +23 -58
- data/Rakefile +10 -14
- data/VERSION +1 -0
- data/asana.gemspec +5 -5
- data/examples/Gemfile.lock +10 -10
- data/lib/asana/client.rb +10 -10
- data/lib/asana/http_client/error_handling.rb +11 -4
- data/lib/asana/resource_includes/attachment_uploading.rb +14 -7
- data/lib/asana/resources/gen/attachments_base.rb +7 -6
- data/lib/asana/resources/gen/audit_log_api_base.rb +37 -0
- data/lib/asana/resources/gen/goals_base.rb +229 -0
- data/lib/asana/resources/gen/project_briefs_base.rb +68 -0
- data/lib/asana/resources/gen/project_templates_base.rb +73 -0
- data/lib/asana/resources/gen/projects_base.rb +14 -1
- data/lib/asana/resources/gen/status_updates_base.rb +72 -0
- data/lib/asana/resources/gen/tags_base.rb +16 -3
- data/lib/asana/resources/gen/tasks_base.rb +9 -10
- data/lib/asana/resources/gen/teams_base.rb +27 -13
- data/lib/asana/resources/gen/time_periods_base.rb +47 -0
- data/lib/asana/resources/gen/typeahead_base.rb +1 -1
- data/lib/asana/resources/gen/users_base.rb +3 -4
- data/lib/asana/resources/gen/webhooks_base.rb +13 -0
- data/lib/asana/resources/gen/workspaces_base.rb +1 -1
- data/lib/asana/resources/portfolio.rb +3 -3
- data/lib/asana/version.rb +1 -1
- data/package-lock.json +115 -0
- data/samples/attachments_sample.yaml +41 -0
- data/samples/audit_log_api_sample.yaml +11 -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/goals_sample.yaml +161 -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_briefs_sample.yaml +41 -0
- data/samples/project_memberships_sample.yaml +21 -0
- data/samples/project_statuses_sample.yaml +41 -0
- data/samples/project_templates_sample.yaml +41 -0
- data/samples/projects_sample.yaml +191 -0
- data/samples/sections_sample.yaml +71 -0
- data/samples/status_updates_sample.yaml +41 -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 +61 -0
- data/samples/time_periods_sample.yaml +21 -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 +51 -0
- data/samples/workspace_memberships_sample.yaml +31 -0
- data/samples/workspaces_sample.yaml +51 -0
- data/swagger_templates/api.mustache +1 -1
- data/swagger_templates/api_doc.mustache +12 -0
- data/swagger_templates/ruby-config.json +1 -2
- metadata +62 -15
- data/.travis.yml +0 -15
@@ -0,0 +1,81 @@
|
|
1
|
+
customfields:
|
2
|
+
create_custom_field: >-
|
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.custom_fields.create_custom_field(field: "value", field: "value", options: {pretty: true})
|
12
|
+
create_enum_option_for_custom_field: >-
|
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.custom_fields.create_enum_option_for_custom_field(custom_field_gid: 'custom_field_gid', field: "value", field: "value", options: {pretty: true})
|
22
|
+
delete_custom_field: >-
|
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.custom_fields.delete_custom_field(custom_field_gid: 'custom_field_gid', options: {pretty: true})
|
32
|
+
get_custom_field: >-
|
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.custom_fields.get_custom_field(custom_field_gid: 'custom_field_gid', param: "value", param: "value", options: {pretty: true})
|
42
|
+
get_custom_fields_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.custom_fields.get_custom_fields_for_workspace(workspace_gid: 'workspace_gid', param: "value", param: "value", options: {pretty: true})
|
52
|
+
insert_enum_option_for_custom_field: >-
|
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.custom_fields.insert_enum_option_for_custom_field(custom_field_gid: 'custom_field_gid', field: "value", field: "value", options: {pretty: true})
|
62
|
+
update_custom_field: >-
|
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.custom_fields.update_custom_field(custom_field_gid: 'custom_field_gid', field: "value", field: "value", options: {pretty: true})
|
72
|
+
update_enum_option: >-
|
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.custom_fields.update_enum_option(enum_option_gid: 'enum_option_gid', field: "value", field: "value", options: {pretty: true})
|
@@ -0,0 +1,11 @@
|
|
1
|
+
events:
|
2
|
+
get_events: >-
|
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.events.get_events(resource: ''resource_example'', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,161 @@
|
|
1
|
+
goals:
|
2
|
+
add_followers: >-
|
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.goals.add_followers(goal_gid: 'goal_gid', field: "value", field: "value", options: {pretty: true})
|
12
|
+
add_subgoal: >-
|
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.goals.add_subgoal(goal_gid: 'goal_gid', field: "value", field: "value", options: {pretty: true})
|
22
|
+
add_supporting_work_for_goal: >-
|
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.goals.add_supporting_work_for_goal(goal_gid: 'goal_gid', field: "value", field: "value", options: {pretty: true})
|
32
|
+
create_goal: >-
|
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.goals.create_goal(field: "value", field: "value", options: {pretty: true})
|
42
|
+
create_goal_metric: >-
|
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.goals.create_goal_metric(goal_gid: 'goal_gid', field: "value", field: "value", options: {pretty: true})
|
52
|
+
delete_goal: >-
|
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.goals.delete_goal(goal_gid: 'goal_gid', options: {pretty: true})
|
62
|
+
get_goal: >-
|
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.goals.get_goal(goal_gid: 'goal_gid', param: "value", param: "value", options: {pretty: true})
|
72
|
+
get_goals: >-
|
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.goals.get_goals(param: "value", param: "value", options: {pretty: true})
|
82
|
+
get_parent_goals_for_goal: >-
|
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.goals.get_parent_goals_for_goal(goal_gid: 'goal_gid', param: "value", param: "value", options: {pretty: true})
|
92
|
+
get_subgoals_for_goal: >-
|
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.goals.get_subgoals_for_goal(goal_gid: 'goal_gid', param: "value", param: "value", options: {pretty: true})
|
102
|
+
remove_followers: >-
|
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.goals.remove_followers(goal_gid: 'goal_gid', field: "value", field: "value", options: {pretty: true})
|
112
|
+
remove_subgoal: >-
|
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.goals.remove_subgoal(goal_gid: 'goal_gid', field: "value", field: "value", options: {pretty: true})
|
122
|
+
remove_supporting_work_for_goal: >-
|
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.goals.remove_supporting_work_for_goal(goal_gid: 'goal_gid', field: "value", field: "value", options: {pretty: true})
|
132
|
+
supporting_work: >-
|
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.goals.supporting_work(goal_gid: 'goal_gid', param: "value", param: "value", options: {pretty: true})
|
142
|
+
update_goal: >-
|
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.goals.update_goal(goal_gid: 'goal_gid', field: "value", field: "value", options: {pretty: true})
|
152
|
+
update_goal_metric: >-
|
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.goals.update_goal_metric(goal_gid: 'goal_gid', field: "value", field: "value", options: {pretty: true})
|
@@ -0,0 +1,21 @@
|
|
1
|
+
organizationexports:
|
2
|
+
create_organization_export: >-
|
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.organization_exports.create_organization_export(field: "value", field: "value", options: {pretty: true})
|
12
|
+
get_organization_export: >-
|
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.organization_exports.get_organization_export(organization_export_gid: 'organization_export_gid', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,31 @@
|
|
1
|
+
portfoliomemberships:
|
2
|
+
get_portfolio_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.portfolio_memberships.get_portfolio_membership(portfolio_membership_gid: 'portfolio_membership_gid', param: "value", param: "value", options: {pretty: true})
|
12
|
+
get_portfolio_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.portfolio_memberships.get_portfolio_memberships(param: "value", param: "value", options: {pretty: true})
|
22
|
+
get_portfolio_memberships_for_portfolio: >-
|
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.portfolio_memberships.get_portfolio_memberships_for_portfolio(portfolio_gid: 'portfolio_gid', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,121 @@
|
|
1
|
+
portfolios:
|
2
|
+
add_custom_field_setting_for_portfolio: >-
|
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.portfolios.add_custom_field_setting_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
12
|
+
add_item_for_portfolio: >-
|
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.portfolios.add_item_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
22
|
+
add_members_for_portfolio: >-
|
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.portfolios.add_members_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
32
|
+
create_portfolio: >-
|
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.portfolios.create_portfolio(field: "value", field: "value", options: {pretty: true})
|
42
|
+
delete_portfolio: >-
|
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.portfolios.delete_portfolio(portfolio_gid: 'portfolio_gid', options: {pretty: true})
|
52
|
+
get_items_for_portfolio: >-
|
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.portfolios.get_items_for_portfolio(portfolio_gid: 'portfolio_gid', param: "value", param: "value", options: {pretty: true})
|
62
|
+
get_portfolio: >-
|
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.portfolios.get_portfolio(portfolio_gid: 'portfolio_gid', param: "value", param: "value", options: {pretty: true})
|
72
|
+
get_portfolios: >-
|
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.portfolios.get_portfolios(workspace: ''workspace_example'', owner: ''owner_example'', param: "value", param: "value", options: {pretty: true})
|
82
|
+
remove_custom_field_setting_for_portfolio: >-
|
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.portfolios.remove_custom_field_setting_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
92
|
+
remove_item_for_portfolio: >-
|
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.portfolios.remove_item_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
102
|
+
remove_members_for_portfolio: >-
|
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.portfolios.remove_members_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
112
|
+
update_portfolio: >-
|
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.portfolios.update_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
@@ -0,0 +1,41 @@
|
|
1
|
+
projectbriefs:
|
2
|
+
create_project_brief: >-
|
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.project_briefs.create_project_brief(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
|
12
|
+
delete_project_brief: >-
|
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.project_briefs.delete_project_brief(project_brief_gid: 'project_brief_gid', options: {pretty: true})
|
22
|
+
get_project_brief: >-
|
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.project_briefs.get_project_brief(project_brief_gid: 'project_brief_gid', param: "value", param: "value", options: {pretty: true})
|
32
|
+
update_project_brief: >-
|
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.project_briefs.update_project_brief(project_brief_gid: 'project_brief_gid', field: "value", field: "value", options: {pretty: true})
|
@@ -0,0 +1,21 @@
|
|
1
|
+
projectmemberships:
|
2
|
+
get_project_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.project_memberships.get_project_membership(project_membership_gid: 'project_membership_gid', param: "value", param: "value", options: {pretty: true})
|
12
|
+
get_project_memberships_for_project: >-
|
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.project_memberships.get_project_memberships_for_project(project_gid: 'project_gid', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,41 @@
|
|
1
|
+
projectstatuses:
|
2
|
+
create_project_status_for_project: >-
|
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.project_statuses.create_project_status_for_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
|
12
|
+
delete_project_status: >-
|
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.project_statuses.delete_project_status(project_status_gid: 'project_status_gid', options: {pretty: true})
|
22
|
+
get_project_status: >-
|
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.project_statuses.get_project_status(project_status_gid: 'project_status_gid', param: "value", param: "value", options: {pretty: true})
|
32
|
+
get_project_statuses_for_project: >-
|
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.project_statuses.get_project_statuses_for_project(project_gid: 'project_gid', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,41 @@
|
|
1
|
+
projecttemplates:
|
2
|
+
get_project_template: >-
|
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.project_templates.get_project_template(project_template_gid: 'project_template_gid', param: "value", param: "value", options: {pretty: true})
|
12
|
+
get_project_templates: >-
|
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.project_templates.get_project_templates(param: "value", param: "value", options: {pretty: true})
|
22
|
+
get_project_templates_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.project_templates.get_project_templates_for_team(team_gid: 'team_gid', param: "value", param: "value", options: {pretty: true})
|
32
|
+
instantiate_project: >-
|
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.project_templates.instantiate_project(project_template_gid: 'project_template_gid', field: "value", field: "value", options: {pretty: true})
|