source: protocols/twitter/twitter.h @ 713d611

Last change on this file since 713d611 was 713d611, checked in by Wilmer van der Gaast <wilmer@…>, at 2010-04-26T21:50:48Z

Twitter module now generates authorize URLs.

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[1b221e0]1/***************************************************************************\
2*                                                                           *
3*  BitlBee - An IRC to IM gateway                                           *
4*  Simple module to facilitate twitter functionality.                       *
5*                                                                           *
6*  Copyright 2009 Geert Mulders <g.c.w.m.mulders@gmail.com>                 *
7*                                                                           *
8*  This library is free software; you can redistribute it and/or            *
9*  modify it under the terms of the GNU Lesser General Public               *
10*  License as published by the Free Software Foundation, version            *
11*  2.1.                                                                     *
12*                                                                           *
13*  This library is distributed in the hope that it will be useful,          *
14*  but WITHOUT ANY WARRANTY; without even the implied warranty of           *
15*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        *
16*  Lesser General Public License for more details.                          *
17*                                                                           *
18*  You should have received a copy of the GNU Lesser General Public License *
19*  along with this library; if not, write to the Free Software Foundation,  *
20*  Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA           *
21*                                                                           *
22****************************************************************************/
23
24#include "nogaim.h"
25
26#ifndef _TWITTER_H
27#define _TWITTER_H
28
29#ifdef DEBUG_TWITTER
30#define debug( text... ) imcb_log( ic, text );
31#else
32#define debug( text... )
33#endif
34
35struct twitter_data
36{
37        char* user;
38        char* pass;
[508c340]39        char* oauth;
[1b221e0]40        guint64 home_timeline_id;
[2abceca]41        gint main_loop_id;
[b4dd253]42        struct groupchat *home_timeline_gc;
[3bd4a93]43        gint http_fails;
[1b221e0]44};
45
[62d2cfb]46/**
47 * This has the same function as the msn_connections GSList. We use this to
48 * make sure the connection is still alive in callbacks before we do anything
49 * else.
50 */
51GSList *twitter_connections;
52
[713d611]53#define TWITTER_OAUTH_REQUEST_TOKEN "http://api.twitter.com/oauth/request_token"
54#define TWITTER_OAUTH_ACCESS_TOKEN  "http://api.twitter.com/oauth/access_token"
55#define TWITTER_OAUTH_AUTHORIZE     "http://api.twitter.com/oauth/authorize"
56
[1b221e0]57#endif //_TWITTER_H
Note: See TracBrowser for help on using the repository browser.