Questions tagged [asana-api]

The Asana API is a RESTful interface, providing programmatic access to much of the data in the system

The Asana Api is a RESTful interface, providing programmatic access to much of the data in the system. It provides predictable URLs for accessing resources, and uses built-in HTTP features to receive commands and return responses. This makes it easy to communicate with from a wide variety of environments, from command-line utilities to gadgets to the browser URL bar itself.

The API accepts JSON or form-encoded content in requests and returns JSON content in all of its responses, including errors. Only the UTF-8 character encoding is supported for both requests and responses.

189 questions
0
votes
2 answers

why post request has different result?

I have use curl in linux to post data to asana and its work fine. curl -H "Authorization: Bearer " https://app.asana.com/api/1.0/tasks/101/stories -d "text=hello world" but if I use requests library for python the result is 400 response =…
0
votes
1 answer

Google Script to add Asana Task Error 400

I am using the following example to attempt creation of Asana task via Google Sheets script. Referencing this SO question and accepted answer. Creating Asana tasks from Google Apps Script The OP claimed it worked at the time, in 2015. Now, I am…
faldeland
  • 587
  • 6
  • 20
0
votes
0 answers

PHP Asana API createInWorkspace failing on Google App Engine

I'm writing an integration to post tasks into Asana, using the official Asana PHP Client. Locally - using Google App Engine Launcher - my script is running as intended and the Asana task is created. Remotely, I'm getting an error from the…
Adam Hopkinson
  • 28,281
  • 7
  • 65
  • 99
0
votes
1 answer

posting a task in asana through API won't accept line breaks for "notes"

when creating a task in Asana through API it won't accept line breaks for the "notes" parameter. Is there any workaround for this?
0
votes
1 answer

asana api fail to add project to task after add followers (I use asana-api-php-class)

I add project to this task after create task "without" followers. And it works. But when I add project to this task after create task "with" followers. And it dose not works. I use below php…
beehuang
  • 339
  • 2
  • 18
0
votes
1 answer

how to connect odoo with asana?

I want to connect my odoo with asana project. but it display HTTPError: HTTP Error 400: Bad Requesterror. def execute(self, cr, uid, ids, context=None): params = { 'client_id': '142025919&', 'client_secret': '9691f60a6ca68&', …
0
votes
1 answer

How to know if task is private in Asana API?

What is the flag to detect that the task is private? I can't see it in Task object. Is there any way to detect this?
Tigran Tokmajyan
  • 1,937
  • 7
  • 25
  • 36
0
votes
1 answer

Asana - How to query for tasks completed between dates?

I am trying to get a collection of tasks that are in a specific team and completed between certain dates such as last month. I see in the API docs that there is a task.find_all but that seems to give everything after a certain completion date and…
Eric Snyder
  • 1,816
  • 3
  • 22
  • 46
0
votes
1 answer

What are possible story types in Asana API?

This information is missing from the story endpoint documentation here: https://asana.com/developers/api-reference/stories Do you know what are the possible values for type field?
Tigran Tokmajyan
  • 1,937
  • 7
  • 25
  • 36
0
votes
1 answer

How to get all the tasks between two dates for a project?

As a requirement, I want to get all the tasks created between any 2 dates(for a project). It does not matter whether these tasks got completed or not. I looked at the Tasks API, which has a query section that talks about completed_since: Only…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
0
votes
1 answer

Asana upload error with Asana/php-asana

trying to test provided sample code: $attachment = $client->attachments->createOnTask( $enquiry->id, 'hello word', 'upload.txt', 'text/plain' ); Error: 400 File is not an…
Arnaud Moret
  • 732
  • 9
  • 12
0
votes
1 answer

Asana API (Java) - Fetching the tasks's due date

I am using the API code developed in Java and I am trying to obtain the due date for a task. When I use the following lines of code, I get "null": List tasks = client.tasks.findByProject(demoProject.id).execute(); for(int i = 0; i <…
0
votes
1 answer

Asana get /events

everyone! I've got a problem with receiving data for request like "/events" (as described in https://asana.com/developers/api-reference/events). I sent GET request to https:/ /app.asana.com:443/api/1.0/events/ and got error 400 (bad request). For…
0
votes
2 answers

GET /tasks does not work

I'm using Query Tasks method: https://asana.com/developers/api-reference/tasks#query using following code snipet: String url = API_BASE+"/tasks?completed_since=now"; System.out.println(url); HttpGet httpget = new HttpGet(url); …
gpa
  • 2,411
  • 6
  • 38
  • 68
0
votes
1 answer

How do you get the "author" of an Asana task from the API?

Trying to determine who created an Asana task from the API, but: There's no author field on the task itself. Followers cannot be used because the creator can remove himself from followers. Looking at the stories of a task, there is not system event…
Marc
  • 3,243
  • 3
  • 23
  • 26