php-asana | Official PHP client library for the Asana API v1 | REST library
kandi X-RAY | php-asana Summary
kandi X-RAY | php-asana Summary
Official PHP client library for the Asana API v1.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Makes a request .
- Log Asana - Change - Headers
- Handles errors .
- Advances to the next page
- Get the next event
- Parse the response body .
- Refresh the access token .
- Get users for a team
- Create an enum option for a custom field
- Create a project status for a project .
php-asana Key Features
php-asana Examples and Code Snippets
Community Discussions
Trending Discussions on php-asana
QUESTION
I can't seem to be able to add tags to new or existing tasks.
I'm using the API from github at https://github.com/Asana/php-asana
Per the docs here, I set up the options and fired up the API call to the task endpoint. It fails with:
Fatal error: Uncaught exception 'Asana\Errors\InvalidRequestError' with message 'Invalid Request' in /mydir/asana/Asana/Errors/AsanaError.php:29
...ANSWER
Answered 2017-Mar-20 at 20:25I took a look at reproducing your first example and it totally worked for me. (Unfortunately, our API is asymmetric in some places, here's one of them: sending the array of IDs is the way to go, as presented in your very first example, but what you'll get back is those nested {ID, name}
pairs in the response.)
I'm not sure what you might be running into - I suspect it's probably something outside of the actual PHP code you're using. I was able to get an invalid request error to throw if the IDs of the tags don't exist in Asana, could this be the problem?
To troubleshoot errors, we send back what we hope is a fairly friendly message in the response. If you change your request code above to
QUESTION
I am trying to use the Asana PHP API to build a browser project for personal use, but I am facing problems with connecting to the API.
This is the response i get when trying to fetch the user data from the API.
Fatal error: Uncaught exception 'Httpful\Exception\ConnectionErrorException' with message 'Unable to connect to "https://app.asana.com/api/1.0/users/me": 35 Unknown SSL protocol error in connection to app.asana.com:443 ' in php-asana\vendor\nategood\httpful\src\Httpful\Request.php:208
Here is the code I am using for initializing and fetching the data
...ANSWER
Answered 2017-Jan-25 at 04:07You might be using a deprecated version of TLS to do your requests, please see Asana is now deactivating TLS 1.0
Additionally, the library you are using may not support secure connections
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install php-asana
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page