Skip to content

Instantly share code, notes, and snippets.

@mattmo
mattmo / CopyAsanaTasks.php
Created April 21, 2016 00:51 — forked from AWeg/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
function asanaRequest($methodPath, $httpMethod = 'GET', $body = null)
{
$apiKey = 'ASANA_API_KEY_HERE'; /// Get it from http://app.asana.com/-/account_api
$url = "https://app.asana.com/api/1.0/$methodPath";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ;
curl_setopt($ch, CURLOPT_USERPWD, $apiKey);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
@mattmo
mattmo / keybase.md
Created April 23, 2014 23:20
keybase.md

Keybase proof

I hereby claim:

  • I am mattmo on github.
  • I am mattm (https://keybase.io/mattm) on keybase.
  • I have a public key whose fingerprint is F179 4EE7 81A7 3448 806E 853B 7190 04F9 2CF8 310D

To claim this, I am signing this object: