Attaching a document to a task - asana

I could not find a way of attaching a document to a task via the Asana API's at http://developers.asana.com
Is this possible, and if so how?

(I work at Asana)
Sorry, there is currently no way to add an attachment to a task via the API.

While Greg was correct at the time he wrote this, I'm now pleased to say you can both fetch and upload attachments via the API: https://asana.com/developers/api-reference/attachments

Related

How can content be pulled from Wordpress?

Is it possible to do some API call and pull Wordpress content? Or is that not a possibility?
I am trying to get my blog's content and display it in a mobile (iPhone) app. Would anyone know how to best accomplish that?
Thank you!
You need to install this plugin. It provides a lot of APIs which you can call including:-
get_recent_posts
get_posts
get_post
get_page
example usage:-
http://your-site-name.com/api/get_post?id=1
will return post (in JSON) with id 1
You can also create post, update post and delete post using some APIs provided by this plugin.

Tasks and Box API

Does anyone know if there are any plans to add tasks to the api? Like the ability to add or complete tasks? Attach tasks to documents?
Thanks and cheers,
Chad
Yes, there are plans to add tasks to the V2 API. It is not part of our short list to get the V2 API to GA status, but will probably come shortly afterwards.
If you have specific uses for tasks that you'd be willing to share with us, you can let us know more details via email at api at Box dot com.

How to automatically post a tweet on twitter

I am working on a site where users can submit data. Is it possible to set up an automated system such that a tweet goes out every time a new data set is received?
I believe it's possible through their own API: http://apiwiki.twitter.com/w/page/22554648/FrontPage
A good place to start is the Twitter API.
Using Abraham's Oauth library in your application and once you have verified/cleaned user import use the variables in an if statement and then call the library and post a tweet. i have a similar set up for adding films i've seen into a database and it tweets a rating everytime.
I can provide coding example (PHP) later if you need further help.

Redmine: create issues via GET request

In JIRA it is possible to create new issues through a simple GET request: http://confluence.atlassian.com/display/JIRA/Creating+Issues+via+direct+HTML+links.
A simple example of such a link:
"http://jira.atlassian.com/secure/CreateIssueDetails!init.jspa?pid=10420&issuetype=3&summary=say+hello+world"
This would create a new issue in project with PID=1042 with summary "Say Hello world".
Is there Redmine plugin/api which allows for such a use case? The REST API is inconvenient for my use since I would like to allow users to create new issues (with pre filled data) through a link sent in email and I don't want to use JavaScript for the job (to send the REST json/xml data).
EDIT:
From what I see (http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails) Redmine provides an email API for submitting issues, this would be a parital solution. I would be able to add a "mailto:" link which would pre fill the content of the message.
This solution requires additional emails so still I would prefer to have a post link solution.
I have implemented a basic plugin which fulfills my needs. You can find it at:
http://code.google.com/p/redmine-post-link-plugin/
You could also have a server-side script that actually sends the e-mail. There's no post link solution as far as I know.
You might want to look at the Redmine API for updating and creating issues.
http://www.redmine.org/projects/redmine/wiki/Rest_Issues
In Redmine2 there is oficial API for it.

Anyone found a way to download google chat logs?

I'd like to be able to get all my Google chat logs so that I can use them for training a chat bot type of thing.
I am aware of the limitations that have been imposed by Google so that chats cannot be simply downloaded through IMAP. I'm looking for workarounds.
As of September 2011, Google removed the restriction on downloading chats. Google now allows export of chatlogs using IMAP.
It's not possible to download the chat logs unless they're attached to an email conversation - maybe you could fwd all of the logs that are held in your 'chats' folder and then download the conversations over IMAP or POP?
I recently had to do the same thing and coded a quick ruby script. http://9seats.com/2011/04/archiving-gmail-chat-logs-with-ruby/
If you're looking to make a program to do this, you could use a greasemonkey script and a local PHP server.
The greasemonkey script would pick up chats as you visit them, parse them, and send them to the local PHP server, which could then dump it to a TXT, SQL, whatever.
Contact me if you want some help, I might be interested in this, though I'll be on holidays the next months :)
Take a wander through the Google Talk API. And this may, or may not, help too: GMailAPI
If you know how to download a email. You can do the same to chat. Because chats are nothing but an email tagged with label chat. If you see chats, they are actually sent from the person you chatted with to you.

Resources