public
Description: A Clutter-based Twitter client
Homepage: http://live.gnome.org/Tweet
Clone URL: git://github.com/ebassi/tweet.git
Provide the wrapper for the archive method

TwitterClient now wraps the Twitter users/archive function inside
twitter_client_get_archive(). This function should be used to
quickly retrieve the user's archive of statuses for export.
Emmanuele Bassi (author)
Wed Jun 18 00:29:49 -0700 2008
commit  fd3d3064e8fbb832e256cdfc7bac7be5eff5abad
tree    20401ccc0804218174a9e4406fa5bb996eefc0ed
parent  c69e86af4e79e789bd231d9a1648bf3f21b8af91
...
287
288
289
 
290
291
292
...
312
313
314
 
315
316
317
...
921
922
923
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
924
925
926
...
287
288
289
290
291
292
293
...
313
314
315
316
317
318
319
...
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
0
@@ -287,6 +287,7 @@ typedef enum {
0
   USER_SHOW,
0
   VERIFY_CREDENTIALS,
0
   END_SESSION,
0
+ ARCHIVE,
0
   FRIEND_CREATE,
0
   FRIEND_DESTROY,
0
   FAVORITE_CREATE,
0
@@ -312,6 +313,7 @@ static const gchar *action_names[N_CLIENT_ACTIONS] = {
0
   "users/show",
0
   "account/verify_credentials",
0
   "account/end_session",
0
+ "account/archive",
0
   "friendship/create",
0
   "friendship/destroy",
0
   "favorites/create",
0
@@ -921,6 +923,28 @@ twitter_client_get_favorites (TwitterClient *client,
0
                                 clos);
0
 }
0
 
0
+void
0
+twitter_client_get_archive (TwitterClient *client,
0
+ gint page)
0
+{
0
+ GetTimelineClosure *clos;
0
+ SoupMessage *msg;
0
+
0
+ g_return_if_fail (TWITTER_IS_CLIENT (client));
0
+
0
+ msg = twitter_api_archive (page);
0
+
0
+ clos = g_new0 (GetTimelineClosure, 1);
0
+ closure_set_action (clos, ARCHIVE);
0
+ closure_set_client (clos, g_object_ref (client));
0
+ closure_set_requires_auth (clos, TRUE);
0
+ clos->timeline = twitter_timeline_new ();
0
+
0
+ twitter_client_queue_message (client, msg, TRUE,
0
+ get_timeline_cb,
0
+ clos);
0
+}
0
+
0
 static void
0
 get_user_cb (SoupSession *session,
0
              SoupMessage *msg,
...
144
145
146
 
 
147
148
149
...
144
145
146
147
148
149
150
151
0
@@ -144,6 +144,8 @@ void twitter_client_get_replies (TwitterClient *client);
0
 void twitter_client_get_favorites (TwitterClient *client,
0
                                                     const gchar *user,
0
                                                     gint page);
0
+void twitter_client_get_archive (TwitterClient *client,
0
+ gint page);
0
 void twitter_client_get_friends (TwitterClient *client,
0
                                                     const gchar *user,
0
                                                     gint page,

Comments

    No one has commented yet.