172
* flickcurl_groups_join:
173
* @fc: flickcurl context
174
* @group_id: The NSID of the Group in question
175
* @accept_rules: If the group has rules, they must be displayed to the user prior to joining. Passing a true value for this argument specifies that the application has displayed the group rules to the user, and that the user has agreed to them. (See flickr.groups.getInfo). Probably takes a '1' or '0' value (or NULL)
177
* Join a public group as a member.
179
* Implements flickr.groups.join (1.25)
181
* Return value: non-0 on failure
184
flickcurl_groups_join(flickcurl* fc, const char* group_id,
185
const char* accept_rules)
187
xmlDocPtr doc = NULL;
190
flickcurl_init_params(fc, 0);
195
flickcurl_add_param(fc, "group_id", group_id);
197
flickcurl_add_param(fc, "accept_rules", accept_rules);
199
flickcurl_end_params(fc);
201
if(flickcurl_prepare(fc, "flickr.groups.join"))
204
doc = flickcurl_invoke(fc);
220
* flickcurl_groups_joinRequest:
221
* @fc: flickcurl context
222
* @group_id: The NSID of the group to request joining.
223
* @message: Message to the administrators.
224
* @accept_rules: If the group has rules, they must be displayed to the user prior to joining. Passing a true value for this argument specifies that the application has displayed the group rules to the user, and that the user has agreed to them. (See flickr.groups.getInfo). Probably takes a '1' or '0' value.
226
* Request to join a group that is invitation-only.
228
* Implements flickr.groups.joinRequest (1.25)
230
* Return value: non-0 on failure
233
flickcurl_groups_joinRequest(flickcurl* fc, const char* group_id,
234
const char* message, const char* accept_rules)
236
xmlDocPtr doc = NULL;
239
flickcurl_init_params(fc, 0);
241
if(!group_id || !message || !accept_rules)
244
flickcurl_add_param(fc, "group_id", group_id);
245
flickcurl_add_param(fc, "message", message);
246
flickcurl_add_param(fc, "accept_rules", accept_rules);
248
flickcurl_end_params(fc);
250
if(flickcurl_prepare(fc, "flickr.groups.joinRequest"))
253
doc = flickcurl_invoke(fc);
268
* flickcurl_groups_leave:
269
* @fc: flickcurl context
270
* @group_id: The NSID of the Group to leave
271
* @delete_photos: Delete all photos by this user from the group. Probably takes a '1' or '0' value (or NULL)
275
* If the user is the only administrator left, and there are other
276
* members, the oldest member will be promoted to administrator.
278
* If the user is the last person in the group, the group will be deleted.
280
* Implements flickr.groups.leave (1.25)
282
* Return value: non-0 on failure
285
flickcurl_groups_leave(flickcurl* fc, const char* group_id,
286
const char* delete_photos)
288
xmlDocPtr doc = NULL;
291
flickcurl_init_params(fc, 0);
296
flickcurl_add_param(fc, "group_id", group_id);
298
flickcurl_add_param(fc, "delete_photos", delete_photos);
300
flickcurl_end_params(fc);
302
if(flickcurl_prepare(fc, "flickr.groups.leave"))
305
doc = flickcurl_invoke(fc);
172
320
* flickcurl_groups_search:
173
321
* @fc: flickcurl context
174
322
* @text: The text to search for.