source: protocols/twitter/twitter_http.h @ acba168

Last change on this file since acba168 was 508c340, checked in by Wilmer van der Gaast <wilmer@…>, at 2010-04-26T00:42:37Z

Successfully posted a tweet!

Twitter's tricky. It returns vars (user_id, screen_name) in the access token
that, the way I read the spec, should be included in all subsequent queries.
However, stuff only started to work when I dropped those vars.

This code's definitely not pretty ATM. Need to clean up now that it actually
works.

  • Property mode set to 100644
File size: 2.0 KB
Line 
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#ifndef _TWITTER_HTTP_H
25#define _TWITTER_HTTP_H
26
27#include "nogaim.h"
28#include "http_client.h"
29
30void *twitter_http(char *url_string, http_input_function func, gpointer data, int is_post, 
31                   char* user, char* pass, char *oauth_token, char** arguments, int arguments_len);
32
33#endif //_TWITTER_HTTP_H
34
Note: See TracBrowser for help on using the repository browser.