Skip to content

Instantly share code, notes, and snippets.

Anna W AWeg

Block or report user

Report or block AWeg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AWeg / CopyAsanaTasks.php
Last active Apr 12, 2019 — forked from MhdHejazi/CopyAsanaTasks.php
main changes: - Asana has own SSL cert -> had to add to lines of code - copies subtasks and up to 11 subtasks of subtasks - copies tags -> only tagnames not followers/descriptions
View CopyAsanaTasks.php
function asanaRequest($methodPath, $httpMethod = 'GET', $body = null)
$apiKey = 'ASANA_API_KEY_HERE'; /// Get it from
$url = "$methodPath";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERPWD, $apiKey);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
You can’t perform that action at this time.