Skip to content

Commit

Permalink
Updated JavaScript SDK: vv3.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 9938bc2 commit b95bc1a
Show file tree
Hide file tree
Showing 49 changed files with 104 additions and 104 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# asana [![GitHub release][release-image]][release-url] [![NPM Version][npm-image]][npm-url]

- API version: 1.0
- Package version: 3.0.12
- Package version: v3.0.13

## Installation

Expand All @@ -18,7 +18,7 @@ npm install asana --save
Include the latest release directly from GitHub:

```html
<script src="https://github.com/Asana/node-asana/releases/download/v3.0.12/asana-min.js"></script>
<script src="https://github.com/Asana/node-asana/releases/download/vv3.0.13/asana-min.js"></script>
```

Example usage (**NOTE**: be careful not to expose your access token):
Expand Down Expand Up @@ -1111,6 +1111,6 @@ client.callApi(
```

[release-image]: https://img.shields.io/github/release/asana/node-asana.svg
[release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.12
[release-url]: https://github.com/Asana/node-asana/releases/tag/vv3.0.13
[npm-image]: http://img.shields.io/npm/v/asana.svg?style=flat-square
[npm-url]: https://www.npmjs.org/package/asana
4 changes: 2 additions & 2 deletions docs/AllocationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ object

Get multiple allocations

Returns a list of allocations filtered to a specific project or user.
Returns a list of allocations filtered to a specific project, user or placeholder.

([more information](https://developers.asana.com/reference/getallocations))

Expand Down Expand Up @@ -184,7 +184,7 @@ allocationsApiInstance.getAllocations(opts).then((result) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**parent** | **String**| Globally unique identifier for the project to filter allocations by. | [optional]
**assignee** | **String**| Globally unique identifier for the user the allocation is assigned to. | [optional]
**assignee** | **String**| Globally unique identifier for the user or placeholder the allocation is assigned to. | [optional]
**workspace** | **String**| Globally unique identifier for the workspace. | [optional]
**limit** | **Number**| Results per page. The number of objects to return per page. The value must be between 1 and 100. | [optional]
**offset** | **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.* | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/AttachmentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Method | HTTP request | Description

Upload an attachment

Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either: - Providing the URL of the external resource being attached, or - Downloading the file content first and then uploading it as any other attachment. Note that it is not possible to attach files from third party services such as Dropbox, Box, Vimeo & Google Drive via the API The 100MB size limit on attachments in Asana is enforced on this endpoint. This endpoint expects a multipart/form-data encoded request containing the full contents of the file to be uploaded. Requests made should follow the HTTP/1.1 specification that line terminators are of the form `CRLF` or `\\r\\n` outlined [here](http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Basic-Rules) in order for the server to reliably and properly handle the request.
Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either: - Providing the URL of the external resource being attached, or - Downloading the file content first and then uploading it as any other attachment. Note that it is not possible to attach files from third party services such as Dropbox, Box, Vimeo & Google Drive via the API The 100MB size limit on attachments in Asana is enforced on this endpoint. This endpoint expects a multipart/form-data encoded request containing the full contents of the file to be uploaded. Requests made should follow the HTTP/1.1 specification that line terminators are of the form `CRLF` or `\\r\\n` outlined [here](http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Basic-Rules) in order for the server to reliably and properly handle the request. For file names that contain non-ASCII characters, the file name should be URL-encoded. For example, a file named `résumé.pdf` should be encoded as `r%C3%A9sum%C3%A9.pdf` and the `filename` parameter in the `Content-Disposition` header should be set to the encoded file name. Below is an example of a cURL request with the `Content-Disposition` header: ``` export ASANA_PAT=\"<YOUR_ASANA_PERSONAL_ACCESS_TOKEN>\" export PARENT_ID=\"<PARENT_GID>\" export ENCODED_NAME=\"r%C3%A9sum%C3%A9.pdf\" curl --location 'https://app.asana.com/api/1.0/attachments' \\ --header 'Content-Type: multipart/form-data' \\ --header 'Accept: application/json' \\ --header \"Authorization: Bearer $ASANA_PAT\" \\ --form \"parent=$PARENT_ID\" \\ --form \"file=@/Users/exampleUser/Downloads/résumé.pdf;headers=\\\"Content-Disposition: form-data; name=\"file\"; filename=\"$ENCODED_NAME.pdf\"; filename*=UTF-8''$ENCODED_NAME.pdf\\\"\" ```

([more information](https://developers.asana.com/reference/createattachmentforobject))

Expand Down
14 changes: 7 additions & 7 deletions docs/PortfoliosApi.md

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/PortfoliosApi.yaml

Large diffs are not rendered by default.

Loading

0 comments on commit b95bc1a

Please sign in to comment.