You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
let attachment_gid ="12345"; // String | Globally unique identifier for the attachment.
141
141
let opts = {
142
-
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
142
+
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
let parent ="159874"; // String | Globally unique identifier for object to fetch statuses from. Must be a GID for a `project`, `project_brief`, or `task`.
192
192
let opts = {
193
-
'limit':50, // Number | Results per page. The number of objects to return per page. The value must be between 1 and 100.
194
-
'offset':"eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9", // String | Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.'
195
-
'opt_fields': ["connected_to_app","created_at","download_url","host","name","offset","parent","parent.created_by","parent.name","parent.resource_subtype","path","permanent_url","resource_subtype","size","uri","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
193
+
'limit':50, // Number | Results per page. The number of objects to return per page. The value must be between 1 and 100.
194
+
'offset':"eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9", // String | Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.'
195
+
'opt_fields': ["connected_to_app","created_at","download_url","host","name","offset","parent","parent.created_by","parent.name","parent.resource_subtype","path","permanent_url","resource_subtype","size","uri","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
console.log('API called successfully. Returned data: ' + JSON.stringify(data, null, 2));
44
-
}
40
+
if (error) {
41
+
console.error(error);
42
+
} else {
43
+
console.log('API called successfully. Returned data: ' + JSON.stringify(data, null, 2));
44
+
}
45
45
});
46
46
getAttachment: |-
47
47
const Asana = require('asana');
@@ -54,14 +54,14 @@ AttachmentsApi:
54
54
let apiInstance = new Asana.AttachmentsApi();
55
55
let attachment_gid = "12345"; // String | Globally unique identifier for the attachment.
56
56
let opts = {
57
-
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
57
+
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
console.log('API called successfully. Returned data: ' + JSON.stringify(data, null, 2));
64
-
}
60
+
if (error) {
61
+
console.error(error);
62
+
} else {
63
+
console.log('API called successfully. Returned data: ' + JSON.stringify(data, null, 2));
64
+
}
65
65
});
66
66
getAttachmentsForObject: |-
67
67
const Asana = require('asana');
@@ -74,14 +74,14 @@ AttachmentsApi:
74
74
let apiInstance = new Asana.AttachmentsApi();
75
75
let parent = "159874"; // String | Globally unique identifier for object to fetch statuses from. Must be a GID for a `project`, `project_brief`, or `task`.
76
76
let opts = {
77
-
'limit': 50, // Number | Results per page. The number of objects to return per page. The value must be between 1 and 100.
78
-
'offset': "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9", // String | Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.'
79
-
'opt_fields': ["connected_to_app","created_at","download_url","host","name","offset","parent","parent.created_by","parent.name","parent.resource_subtype","path","permanent_url","resource_subtype","size","uri","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
77
+
'limit': 50, // Number | Results per page. The number of objects to return per page. The value must be between 1 and 100.
78
+
'offset': "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9", // String | Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.'
79
+
'opt_fields': ["connected_to_app","created_at","download_url","host","name","offset","parent","parent.created_by","parent.name","parent.resource_subtype","path","permanent_url","resource_subtype","size","uri","view_url"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
let workspace_gid ="12345"; // String | Globally unique identifier for the workspace or organization.
28
28
let opts = {
29
-
'start_at':newDate("2013-10-20T19:20:30+01:00"), // Date | Filter to events created after this time (inclusive).
30
-
'end_at':newDate("2013-10-20T19:20:30+01:00"), // Date | Filter to events created before this time (exclusive).
31
-
'event_type':"event_type_example", // String | Filter to events of this type. Refer to the [supported audit log events](/docs/audit-log-events#supported-audit-log-events) for a full list of values.
32
-
'actor_type':"actor_type_example", // String | Filter to events with an actor of this type. This only needs to be included if querying for actor types without an ID. If `actor_gid` is included, this should be excluded.
33
-
'actor_gid':"actor_gid_example", // String | Filter to events triggered by the actor with this ID.
34
-
'resource_gid':"resource_gid_example", // String | Filter to events with this resource ID.
35
-
'limit':50, // Number | Results per page. The number of objects to return per page. The value must be between 1 and 100.
36
-
'offset':"eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9"// String | Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.'
29
+
'start_at':newDate("2013-10-20T19:20:30+01:00"), // Date | Filter to events created after this time (inclusive).
30
+
'end_at':newDate("2013-10-20T19:20:30+01:00"), // Date | Filter to events created before this time (exclusive).
31
+
'event_type':"event_type_example", // String | Filter to events of this type. Refer to the [supported audit log events](/docs/audit-log-events#supported-audit-log-events) for a full list of values.
32
+
'actor_type':"actor_type_example", // String | Filter to events with an actor of this type. This only needs to be included if querying for actor types without an ID. If `actor_gid` is included, this should be excluded.
33
+
'actor_gid':"actor_gid_example", // String | Filter to events triggered by the actor with this ID.
34
+
'resource_gid':"resource_gid_example", // String | Filter to events with this resource ID.
35
+
'limit':50, // Number | Results per page. The number of objects to return per page. The value must be between 1 and 100.
36
+
'offset':"eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9"// String | Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.'
0 commit comments