Page 1 of 1

Post to Twitter

Posted: 11 Mar 2011, 21:22
by david_navigator
Help, I've looked and I've searched but I can't see what I need to do to get my version of Mantis 1.2.1 to post to my Twitter account. I'm sure it's simple and I that I simply can't see the woods for the trees, but if someone could tell me, preferably in simple terms, I'd be grateful.

David

Re: Post to Twitter

Posted: 15 Mar 2011, 11:11
by david_navigator
somebody must know how to do this

Re: Post to Twitter

Posted: 15 Mar 2011, 20:43
by atrol
david_navigator wrote:Mantis 1.2.1 to post to my Twitter account.
IMO it's not clear what you expect

Re: Post to Twitter

Posted: 16 Mar 2011, 12:01
by david_navigator
I believe that when I resolve an issue in Mantis, I can automatically post this to my twitter account, so my customer's are aware that the issue has been dealt with.
If this is correct, then I would like to know how I configure Mantis to do this. I can't find any documentation that explains what I need to do.

Re: Post to Twitter

Posted: 17 Mar 2011, 08:12
by atrol
There is no builtin function for this.
To get the functionality you could write a plugin or customize the existing functionality to sent email.
There are service providers where you get an email address and all incoming emails are sent to a twitter account.

Re: Post to Twitter

Posted: 17 Mar 2011, 11:54
by david_navigator
I don't understand, the manual mentions that I need curl for Twitter integration (but says nothing more on it - why mention it at all if there isn't some kind of integration) and this thread http://www.mantisbt.org/forums/viewtopi ... ter#p18536 seems to show that resolved issues are being posted to Twitter, but you say that there is no built in support for Twitter.
How are the MantisBT tweets shown on http://www.mantisbt.org/ generated ?

Re: Post to Twitter

Posted: 17 Mar 2011, 15:45
by atrol
You are right, there is some builtin functionality!

I was confused because I checked the twitter functionality that you mentioned from http://www.mantisbt.org
This is realized by a plugin, which is not able to provide the functionality you want.
You can use this plugin to implement an internal twitter funcionality or to read posts from twitter.
(At least the documentation says this, I never tried myself)

You are also right when saying "I'm sure it's simple"
Seems you have just to add the following two lines to file config_inc.php

Code: Select all

$g_twitter_username = 'yourTwitterAccount';
$g_twitter_password = 'yourTwitterPassword';

Re: Post to Twitter

Posted: 17 Mar 2011, 22:52
by david_navigator
Thanks, of course that had to be too simple !! I updated those to my twitter username and password, but marking a public issue on a public project as resolved, doesn't result in anything being posted to twitter. Unless anyone has any suggestions, I'll just have to do some playing 2morrow.

Re: Post to Twitter

Posted: 18 Mar 2011, 18:33
by david_navigator
Frustrating, can't get it to work.
Is there some function I can use to help debug what's happening, maybe something to write to a log file or some such. Although I've got 20 years programming under my hat, I don't know php at all.

Re: Post to Twitter

Posted: 18 Mar 2011, 18:47
by david_navigator
I'm beginning to think it doesn't work at all. I've just looked at the MantisBT account on Twitter and nothing has been posted to it since Nov, yet I can see loads of bugs have been resolved.

Re: Post to Twitter

Posted: 18 Mar 2011, 19:12
by atrol
Seems that twitter does not longer support the authentification method used by MantisBT.
They decided to support OAuth.
http://dev.twitter.com/pages/oauth_faq

Re: Post to Twitter

Posted: 23 Mar 2011, 11:01
by david_navigator
Added to BT with sponsorship if anyone fancies working on it.

Re: Post to Twitter

Posted: 23 Mar 2011, 11:25
by atrol
thanks,
for other users to track http://www.mantisbt.org/bugs/view.php?id=12865