asana-api

Can I use Google Apps Script as Asana Webhooks endpoint (doPost)?

点点圈 提交于 2020-01-15 09:03:50
问题 I'm trying to connect Google Docs with Asana. I can create tasks from Google Docs and save the connection to MySql database so I can display tasks inside Google Document . Now I need those tasks to be synced with Asana all the time, so I wanted to create Asana webhooks. I created a doPost funtion in Google Apps Script which should serve as an endpoint. But when I initiate the starting handshake I don't receive a request from Asana to my Google Web App . To be sure I'm doing everything right I

Creating Asana tasks from Google Apps Script

白昼怎懂夜的黑 提交于 2020-01-06 21:06:57
问题 I am trying to create tasks in Asana using google apps scripts. I do manage to read (GET method) any kind of information from asana, but when I try to do a POST like creating a new task in a specific workspace and project, it creates the task but using default values ignoring json data that I pass. this is the code I've been using: function createTask (taskName, wsId, projectId, asigneeId) { var encoded = Utilities.base64Encode(asanaKey + ":"); var options = { "method" : "POST", "headers" : {

How to set custom_fields that has an enum_value using a POST HTTP request?

房东的猫 提交于 2019-12-25 05:13:13
问题 I'm trying to set a custom_fields of type enum_value in a task that I'm creating with a POST HTTP request. I managed to set a custom_field of type number but I'm having issue with the custom_fields of type enum_value Questions: Here's what I did so far: 1- I created the custom_fields that I want to populate on asana, I can set custom_fields of type number but not the ones of type enum_value ( see picture attached) Here's my code (I tried different implementations to set the custom_fields that

Updating a custom field using ASANA Python API

♀尐吖头ヾ 提交于 2019-12-25 04:24:28
问题 I'm trying to update the values of custom fields in my Asana list. I'm using the Official Python client library for the Asana API v1. My code currently looks like this; project = "Example Project" keyword = "Example Task" print "Logging into ASANA" api_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" client = asana.Client.basic_auth(api_key) me = client.users.me() all_projects = next(workspace for workspace in me['workspaces']) projects = client.projects.find_by_workspace(all_projects['id'])

How can I add guests or members to projects created through the Asana API?

这一生的挚爱 提交于 2019-12-12 05:58:36
问题 I currently have a script that takes a list of people and creates new Asana projects, one for each person. These people are not in our Asana organization and need to be invited as guests to their respective projects. If I try to include a followers or members property in my API request, I get denied, and the docs list those properties as read-only . I noticed this question from over a year and a half ago, where an Asana engineer said that it was on the API roadmap and that he hoped to publish

Creating an Asana Task using a POST http request

烈酒焚心 提交于 2019-12-12 03:31:39
问题 I'm trying to use the asana-api to create a Task using a POST http request but I keep getting a 400 bad request as a response . I managed to get data from the Asana-api using ( a GET request ), but I'm having trouble sending data to Asana with ( a POST request ) I'm using the 'request' module to do the api call here's the error message : `{"errors":[{ "message":"Could not parse request data,invalid JSON", "help":"For more information on API status codes and how to handle them, read the docs

Can I use Asana access_token in the backend?

邮差的信 提交于 2019-12-11 04:31:15
问题 I have an Angular App as a front-end client and a Rails back-end API. I'd like to access Asana's API and and would like to authorise it via the Angular App, so I'm following their OAuth process called Implicit Grant Flow . After the authorisation process I get a access_token but when trying to use this code on Postman (in order to test the API call I'll implement on the back-end) I get an 401, not authorised code. Is there a way I could get the user to authorise via the Angular and then