forked from dajobe/flickcurl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNEWS.html
2623 lines (2185 loc) · 97.7 KB
/
NEWS.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
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
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>
<title>Flickcurl News</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<h1 style="text-align:center">Flickcurl News</h1>
<h2 style="text-align:center"><a href="http://www.dajobe.org/">Dave Beckett</a></h2>
<h2 id="D2012-XX-XX-V1.24">2012-XX-XX Flickcurl Version 1.24 Released</h2>
<p>Not yet released.
</p>
<h2 id="D2012-09-01-V1.23">2012-09-01 Flickcurl Version 1.23 Released</h2>
<p>This release fully supports using Flickr via OAuth 1.0 and
converting from the legacy Flickr authentication to OAuth. It
supports both authentication flows but Flickr has deprecated the
legacy authentication, so it might stop working at any time.
</p>
<p>Flickr <a href="http://www.flickr.com/services/api/misc.userauth.html">Legacy authentication</a> flow with Flickcurl:</p>
<ol>
<li>The initial configuration needed is the <em>API Key</em> and <em>Shared Secret</em>, obtained from the <a href="http://www.flickr.com/services/">Flickr App Garden</a>.</li>
<li>Get the <em>Authentication URL</em> from the Flickr App Garden.</li>
<li>Show the Authentication URL to the user who approves the app resulting in
a user visible <em>Frob</em>.</li>
<li>Authentication completes using
<code>flickcurl_auth_getFullToken()</code> which exchanges the Frob for
the final <em>Auth Token</em>.</li>
<li>Optionally, the <code>flickcurl(1)</code> utility will store in
the configuration file: auth_token, api_key and secret. Otherwise the
application should do this.</li>
</ol>
<p>Flickr <a href="http://www.flickr.com/services/api/auth.oauth.html">Flickr OAuth</a> 1.0 flow with Flickcurl:</p>
<ol>
<li>The initial configuration needed is the <em>Client Key</em> (API Key) and <em>Client Secret</em> (Shared Secret), obtained from the <a href="http://www.flickr.com/services/">Flickr App Garden</a>.</li>
<li>Authentication starts with a call to
<code>flickcurl_oauth_create_request_token()</code> to get the
<em>Request Token</em> and <em>Request Token Secret</em>.</li>
<li>Get the <em>Authentication URL</em> using
<code>flickcurl_oauth_get_authorize_uri()</code>.</li>
<li>Show the Authentication URL to the user who approves the app resulting in
a user visible <em>Verifier</em>.</li>
<li>Authentication completes using
<code>flickcurl_oauth_create_access_token()</code> to exchange
the request token, request token secret and verifier for the final
<em>Access Token</em> and <em>Access Token Secret</em>.</li>
<li>Optionally, the <code>flickcurl(1)</code> utility will store in
the configuration file: oauth_token, oauth_token_secret,
oauth_client_key and oauth_client_secret. Otherwise the
application should do this.
</li>
</ol>
<p>Added an API call to upgrade from the Flickr legacy authentication
to OAuth 1.0. This revokes and deletes the legacy 'auth_token' and
returns an OAuth Access Token and Access Token Secret pair which need
to be saved.</p>
<pre>
int flickcurl_auth_oauth_getAccessToken(flickcurl* fc)
</pre>
<p>The upgrade can also be performed by using the
<code>oauth.upgrade</code> command of the <code>flickcurl(1)</code>
utility.
</p>
<p>Added new API calls to get and set OAuth parameters:</p>
<pre>
const char* flickcurl_get_oauth_token(flickcurl *fc);
void flickcurl_set_oauth_token(flickcurl *fc, const char* token);
const char* flickcurl_get_oauth_token_secret(flickcurl* fc);
void flickcurl_set_oauth_token_secret(flickcurl* fc, const char *secret);
const char* flickcurl_get_oauth_client_key(flickcurl *fc);
void flickcurl_set_oauth_client_key(flickcurl *fc, const char* client_key);
const char* flickcurl_get_oauth_client_secret(flickcurl *fc);
void flickcurl_set_oauth_client_secret(flickcurl *fc, const char* client_secret);
const char* flickcurl_get_oauth_request_token(flickcurl* fc);
void flickcurl_set_oauth_request_token(flickcurl *fc, const char* token);
const char* flickcurl_get_oauth_request_token_secret(flickcurl* fc);
void flickcurl_set_oauth_request_token_secret(flickcurl *fc, const char* secret);
</pre>
<p>Added new API calls for performing the OAuth flow</p>
<pre>
int flickcurl_oauth_create_request_token(flickcurl* fc, const char* callback);
char* flickcurl_oauth_get_authorize_uri(flickcurl* fc);
int flickcurl_oauth_create_access_token(flickcurl* fc, const char* verifier);
</pre>
<p>
In <code>flickcurl_photos_setDates()</code> actually send date_taken
parameter. This fixes
<a href="https://github.com/dajobe/flickcurl/issues/15">GitHub issue 15</a>
</p>
<p>Updated <code>configure</code> to use <code>xml2-config(1)</code>
and <code>curl-config(1)</code> as well as
<code>pkg-config(1)</code>, for systems that do not ship with the
pkg-config files, such as OSX 10.8.</p>
<p>Fixed memory leak in <code>flickcurl_build_persons()</code> on
loop exit (always) and on the error path.</p>
<p>Fixed memory leak in <code>flickcurl_build_photos()</code> of
string_value for tags.</p>
<p>Updated <code>flickcurl</code> utility to handle the OAuth
authentication flow with new commands <code>oauth-create</code> and
<code>oauth-verify</code>, while still supporting legacy Flickr auth
flow with the existing <code>-a FROB</code> form.</p>
<p>Multiple internal changes in the construction of parameters to
make the code more readable and handle the extra parameters needed by
OAuth.</p>
<p>Multiple internal changes for error path and leaks found by the
LLVM <a href="http://clang-analyzer.llvm.org/">clang</a> static code
analyzer.
</p>
<p>Removed all strncpy, strcat and strcpy with counted memcpy.</p>
<h2 id="D2011-12-28-V1.22">2011-12-28 Flickcurl Version 1.22 Released</h2>
<p>Add support for the upload field 'hidden' to set if a photo is
visible in global search.. The <code>flickcurl_upload_params</code>
structure gains an int param <code>hidden</code> with values 1 for
global and 2 for hidden.</p>
<p>Added helper functions <code>flickcurl_get_hidden_label()</code>
and <code>flickcurl_get_hidden_from_string()</code> to help
converting between the int values and readable labels:</p>
<pre>
const char* flickcurl_get_hidden_label(int hidden);
int flickcurl_get_hidden_from_string(const char* hidden_string);
</pre>
<p>Note: This is an API addition so code should test that the
Flickcurl version is 1.22 or newer to use this field and the helper
functions.</p>
<p>Added
<code>flickcurl_favorites_getContext()</code>
for new API call
<a href="http://www.flickr.com/services/api/flickr.favorites.getContext.html">flickr.favorites.getContext</a>,
to get previous and next photos around a favo(u)rite:
</p>
<pre>
flickcurl_photos_list** flickcurl_favorites_getContext(flickcurl* fc,
const char* photo_id, const char* user_id,
int num_prev, int num_next, const char* extras);
</pre>
<p>Now supports only Raptor V2 for optional serializing of triples.</p>
<p>Fix <code>flickcurl(1)</code> utility output and help messages.
Patch from Kumar Appaiah - thanks.</p>
<p>Fix several man page and documentation issues. Patch from Kumar
Appaiah - thanks.</p>
<p>Remove old curl header include. Patch from Tim Harder -
thanks.</p>
<p>Do not delete any existing data
in <code>flickcurl_build_persons()</code> if a field is not found.
</p>
<p>Added <code>raptor_fake.h</code> to distribution so
that <code>flickrdf(1)</code> utility can work without raptor
installed. Noticed by Naruto TAKAHASHI - thanks.
</p>
<p>Added <code>flickcurl_free_tags()</code> to API. Patch from
Naruto TAKAHASHI - thanks.
</p>
<p><code>flickcurl_photoset</code> structure gains an owner NSID
field filled in when present. Patch from Naruto TAKAHASHI - thanks!
</p>
<p>Add experimental OAuth code, not compiled in by default and built
with <code>--enable-oauth</code>.
</p>
<h2 id="D2011-03-26">2011-03-26 Flickcurl 1.21</h2>
<p>Minor bug fixes:</p>
<ul>
<li>Fixed a memory leak when building photo list results. Patch from
Naruto TAKAHASHI - thanks.</li>
<li><code>flickcurl_photos_setPerms()</code> now allows false boolean
permissions. Patch from Henning Spruth - thanks.</li>
<li><code>flickcurl_photosets_getPhotos_params()</code> now works again.</li>
</ul>
<p>Made the <code>flickrdf(1)</code> utility handle Raptor V1, V2 or
none. The <code>configure</code> argument <code>--with-raptor</code>
now takes values '1', '2', 'yes' or 'no'. 'yes' selects Raptor V1 as
before.
</p>
<h2 id="D2010-11-18">2010-11-18 Flickcurl 1.20</h2>
<p>Fixed parsing of standard photos responses (SPR) to make several
API calls work again including:</p>
<ul>
<li><code>flickr.photos.comments.getRecentForContacts</code><br />
Functions <code>flickcurl_photos_comments_getRecentForContacts_params()</code> and
<code>flickcurl_photos_comments_getRecentForContacts()</code>.</li>
<li><code>flickr.photos.getContactsPhotos</code><br />
Functions <code>flickcurl_photos_getContactsPhotos_params()</code> and
<code>flickcurl_photos_getContactsPhotos()</code>.</li>
<li><code>flickr.photos.getContactsPublicPhotos</code><br />
Functions <code>flickcurl_photos_getContactsPublicPhotos_params()</code> and
<code>flickcurl_photos_getContactsPublicPhotos()</code>.</li>
<li><code>flickr.photos.getRecent</code><br />
Functions <code>flickcurl_photos_getRecent_params()</code> and
<code>flickcurl_photos_getRecent()</code>.</li>
<li><code>flickr.photos.recentlyUpdated</code><br />
Functions <code>flickcurl_photos_recentlyUpdated_params()</code> and
<code>flickcurl_photos_recentlyUpdated()</code>.</li>
<li><code>flickr.photos.search</code><br />
Functions <code>flickcurl_photos_search_params()</code> and
<code>flickcurl_photos_search()</code>.</li>
<li><code>flickr.photos.geo.photosForLocation</code><br />
Functions <code>flickcurl_photos_geo_photosForLocation_params()</code> and
<code>flickcurl_photos_geo_photosForLocation()</code>.</li>
<li><code>flickr.photosets.getPhotos</code><br />
Functions <code>flickcurl_photosets_getPhotos_params()</code> and
<code>flickcurl_photosets_getPhotos()</code>.</li>
<li><code>flickr.stats.getPopularPhotos</code><br />
Functions <code>flickcurl_stats_getPopularPhotos()</code>.</li>
<li><code>flickr.tags.getClusterPhotos</code><br />
Functions <code>flickcurl_tags_getClusterPhotos()</code>.</li>
</ul>
<h2 id="D2010-07-24">2010-07-24 Flickcurl 1.19</h2>
<p>Support returning photo notes in <code>flickcurl_photo</code> structure
when returning photo information with a new array field <code>notes</code> and
<code>notes_count</code> for the size of the array.</p>
<p>Added <code>flickcurl_note</code> class to store photo notes.</p>
<p>Added
<code>flickcurl_photosets_removePhotos()</code>,
<code>flickcurl_photosets_reorderPhotos()</code> and
<code>flickcurl_photosets_setPrimaryPhoto()</code> for new API calls
<a href="http://www.flickr.com/services/api/flickr.photosets.removePhotos.html">flickr.photosets.removePhotos</a>,
<a href="http://www.flickr.com/services/api/flickr.photosets.reorderPhotos.html">flickr.photosets.reorderPhotos</a> and
<a href="http://www.flickr.com/services/api/flickr.photosets.setPrimaryPhoto.html">flickr.photosets.setPrimaryPhoto</a>:</p>
<pre>
int flickcurl_photosets_removePhotos(flickcurl* fc,
const char* photoset_id, const char** photo_ids_array);
int flickcurl_photosets_reorderPhotos(flickcurl* fc,
const char* photoset_id, const char** photo_ids_array);
int flickcurl_photosets_setPrimaryPhoto(flickcurl* fc,
const char* photoset_id, const char* photo_id);
</pre>
<p>Added <code>flickcurl(1)</code> command support for new API calls.</p>
<p><code>flickcurl_photos_list</code> gains fields for page number
(<code>page</code>), per-page count (<code>per_page</code>) and total
photos count (<code>total_count</code>).
</p>
<p>Added <code>flickcurl_stats_getCSVFiles</code> but it always does
nothing since it expired at 2010-06-01.</p>
<p>Fixed portability operator typo '> =' and '+ =' lose spaces.
<a href="http://github.com/dajobe/flickcurl/issues/#issue/4">Issue #4</a>.
</p>
<h2 id="D2010-04-26">2010-04-26 Flickcurl 1.18</h2>
<p>Added (rest of) Galleries API calls as
<a href="http://code.flickr.com/blog/2010/04/08/galleries-apis/">announced 2010-04-08</a>:
</p>
<pre>
char* flickcurl_galleries_create(flickcurl* fc, const char* title,
const char* description, const char* primary_photo_id,
char** gallery_url_p);
int flickcurl_galleries_editMeta(flickcurl* fc, const char* gallery_id,
const char* title, const char* description);
int flickcurl_galleries_editPhoto(flickcurl* fc, const char* gallery_id,
const char* photo_id, const char* new_comment);
int flickcurl_galleries_editPhotos(flickcurl* fc, const char* gallery_id,
const char* primary_photo_id, const char** photo_ids_array);
flickcurl_gallery* flickcurl_galleries_getInfo(flickcurl* fc,
const char* gallery_id);
flickcurl_photos_list* flickcurl_galleries_getPhotos_params(flickcurl* fc,
const char* gallery_id, flickcurl_photos_list_params* list_params);
flickcurl_photo** flickcurl_galleries_getPhotos(flickcurl* fc,
const char* gallery_id, const char* extras, int per_page, int page);
char* flickcurl_urls_lookupGallery(flickcurl* fc, const char* url);
</pre>
<p>(The other Gallery API calls were implemented in Flickcurl 1.17
before they were announced.)</p>
<p>Enum <code>flickcurl_photo_field_type</code> gains a new
<code>PHOTO_FIELD_gallery_comment</code> field for representing a
photo's comments in a gallery context.
</p>
<p>Added function for new people API call (not announced):
<a href="http://www.flickr.com/services/api/flickr.people.getPhotos.html">flickr.people.getPhotos</a>:</p>
<pre>
flickcurl_photos_list* flickcurl_people_getPhotos_params(flickcurl* fc,
const char* user_id, int safe_search,
const char* min_upload_date, const char* max_upload_date,
const char* min_taken_date, const char* max_taken_date,
int content_type, int privacy_filter,
flickcurl_photos_list_params* list_params);
flickcurl_photo** flickcurl_people_getPhotos(flickcurl* fc,
const char* user_id, int safe_search,
const char* min_upload_date, const char* max_upload_date,
const char* min_taken_date, const char* max_taken_date,
int content_type, int privacy_filter, const char* extras,
int per_page, int page);
</pre>
<p>Added functions to allow more control over the internal
<code>CURL*</code> handle and to set any curl options needed
such as with <code>curl_easy_setopt()</code>.
The new library constructor
function <code>flickcurl_new_with_handle()</code>
allows reuse an existing curl handle rather than create and
destroy one during the library use.
The new library method
<code>flickcurl_set_curl_setopt_handler()</code> allows user code to
be called via a handler to make any adjustments to the curl options
that may be required on a per-request basis.
</p>
<pre>
flickcurl* flickcurl_new_with_handle(void* curl_handle);
void flickcurl_set_curl_setopt_handler(flickcurl *fc,
flickcurl_curl_setopt_handler curl_handler,
void* curl_handler_data);
</pre>
<p>Added <code>flickcurl(1)</code> utility support for new API calls.</p>
<p>Fix several cut-n-paste "latitude should be longitude" errors in
<code>flickcurl_photos_geo_batchCorrectLocation()</code>,
<code>flickcurl_photos_geo_photosForLocation_params()</code> and
<code>flickcurl_photos_geo_setLocation()</code>.
</p>
<h2 id="D2010-03-05">2010-03-05 Flickcurl 1.17</h2>
<p>Added functions for new stats API calls
<a href="http://code.flickr.com/blog/2010/03/03/flickr-stats-api/">announced 2010-03-03</a>:
<a href="http://www.flickr.com/services/api/flickr.stats.getCollectionDomains.html">flickr.stats.getCollectionDomains</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getCollectionReferrers.html">flickr.stats.getCollectionReferrers</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getCollectionStats.html">flickr.stats.getCollectionStats</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getPhotoDomains.html">flickr.stats.getPhotoDomains</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getPhotoReferrers.html">flickr.stats.getPhotoReferrers</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getPhotosetDomains.html">flickr.stats.getPhotosetDomains</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getPhotosetReferrers.html">flickr.stats.getPhotosetReferrers</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getPhotosetStats.html">flickr.stats.getPhotosetStats</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getPhotoStats.html">flickr.stats.getPhotoStats</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getPhotostreamDomains.html">flickr.stats.getPhotostreamDomains</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getPhotostreamReferrers.html">flickr.stats.getPhotostreamReferrers</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.html">flickr.stats.getPhotostreamStats</a>,
<a href="http://www.flickr.com/services/api/flickr.stats.getPopularPhotos.html">flickr.stats.getPopularPhotos</a> and
<a href="http://www.flickr.com/services/api/flickr.stats.getTotalViews.html">flickr.stats.getTotalViews</a>
including new <code>flickcurl_stats</code> and
<code>flickcurl_view_stats</code> datatypes:</p>
<pre>
flickcurl_stat** flickcurl_stats_getCollectionDomains(flickcurl* fc,
const char* date, const char* collection_id, int per_page, int page);
flickcurl_stat** flickcurl_stats_getCollectionReferrers(flickcurl* fc,
const char* date, const char* domain, const char* collection_id,
int per_page, int page);
int flickcurl_stats_getCollectionStats(flickcurl* fc, const char* date,
const char* collection_id);
flickcurl_stat** flickcurl_stats_getPhotoDomains(flickcurl* fc,
const char* date, const char* photo_id, int per_page, int page);
flickcurl_stat** flickcurl_stats_getPhotoReferrers(flickcurl* fc,
const char* date, const char* domain, const char* photo_id,
int per_page, int page);
flickcurl_stat* flickcurl_stats_getPhotoStats(flickcurl* fc,
const char* date, const char* photo_id);
flickcurl_stat** flickcurl_stats_getPhotosetDomains(flickcurl* fc,
const char* date, const char* photoset_id, int per_page, int page);
flickcurl_stat** flickcurl_stats_getPhotosetReferrers(flickcurl* fc,
const char* date, const char* domain, const char* photoset_id,
int per_page, int page);
int flickcurl_stats_getPhotosetStats(flickcurl* fc, const char* date,
const char* photoset_id);
flickcurl_stat** flickcurl_stats_getPhotostreamDomains(flickcurl* fc,
const char* date, int per_page, int page);
flickcurl_stat** flickcurl_stats_getPhotostreamReferrers(flickcurl* fc,
const char* date, const char* domain, int per_page, int page);
int flickcurl_stats_getPhotostreamStats(flickcurl* fc, const char* date);
flickcurl_photo** flickcurl_stats_getPopularPhotos(flickcurl* fc,
const char* date, const char* sort, int per_page, int page,
const char* extras);
flickcurl_view_stats* flickcurl_stats_getTotalViews(flickcurl* fc,
const char* date);
void flickcurl_free_stat(flickcurl_stat *stat);
void flickcurl_free_stats(flickcurl_stat **stats_object);
void flickcurl_free_view_stats(flickcurl_view_stats *view_stats);
</pre>
<p>
The <code>flickcurl_photo_field_type</code> enum gains new fields for
counts of comments (<code>PHOTO_FIELD_comments</code>) and favorites
(<code>PHOTO_FIELD_favorites</code>) so that these stats can be
returned by the new <code>flickcurl_stats_getPopularPhotos()</code>
call. (View count field is already present).
</p>
<p>Added functions for 5 new people API calls
<a href="http://code.flickr.com/blog/2010/01/21/people-in-photos-the-api-methods/">announced 2010-01-21</a>
<a href="http://www.flickr.com/services/api/flickr.photos.people.add.html">flickr.photos.people.add</a>,
<a href="http://www.flickr.com/services/api/flickr.photos.people.delete.html">flickr.photos.people.delete</a>,
<a href="http://www.flickr.com/services/api/flickr.photos.people.deleteCoords.html">flickr.photos.people.deleteCoords</a>,
<a href="http://www.flickr.com/services/api/flickr.photos.people.editCoords.html">flickr.photos.people.editCoords</a> and
<a href="http://www.flickr.com/services/api/flickr.photos.people.getList.html">flickr.photos.people.getList</a>:</p>
<pre>
int flickcurl_photos_people_add(flickcurl* fc, const char* photo_id,
const char* user_id, int person_x, int person_y, int person_w, int person_h);
int flickcurl_photos_people_delete(flickcurl* fc, const char* photo_id,
const char* user_id);
int flickcurl_photos_people_deleteCoords(flickcurl* fc, const char* photo_id,
const char* user_id);
int flickcurl_photos_people_editCoords(flickcurl* fc, const char* photo_id,
const char* user_id, int person_x, int person_y, int person_w, int person_h);
flickcurl_person** flickcurl_photos_people_getList(flickcurl* fc,
const char* photo_id);
</pre>
<p>Added functions for 1 new "photos of" people API calls
<a href="http://code.flickr.com/blog/2010/01/21/people-in-photos-the-api-methods/">announced 2010-01-21</a>
<a href="http://www.flickr.com/services/api/flickr.people.getPhotosOf.html">flickr.people.getPhotosOf</a>:</p>
<pre>
flickcurl_photos_list* flickcurl_people_getPhotosOf_params(flickcurl* fc,
const char* user_id, flickcurl_photos_list_params* list_params);
flickcurl_photo** flickcurl_people_getPhotosOf(flickcurl* fc,
const char* user_id, const char* extras, int per_page, int page);
</pre>
<p>Added functions for 3 new gallery API calls - not yet announced
and seems a little incomplete e.g. you cannot list the photos in a
gallery:
<a href="http://www.flickr.com/services/api/flickr.galleries.addPhoto.html">flickr.galleries.addPhoto</a>,
<a href="http://www.flickr.com/services/api/flickr.galleries.getList.html">flickr.galleries.getList</a> and
<a href="http://www.flickr.com/services/api/flickr.galleries.getListForPhoto.html">flickr.galleries.getListForPhoto</a>
including new type <code>flickcurl_gallery</code>:</p>
<pre>
int flickcurl_galleries_addPhoto(flickcurl* fc, const char* gallery_id,
const char* photo_id, const char* comment_text);
flickcurl_gallery** flickcurl_galleries_getList(flickcurl* fc,
const char* user_id, int per_page, int page);
flickcurl_gallery** flickcurl_galleries_getListForPhoto(flickcurl* fc,
const char* photo_id, int per_page, int page);
void flickcurl_free_galleries(flickcurl_gallery **galleries_object);
</pre>
<p>Updated the <code>flickcurl(1)</code> to support the new gallery,
people photos and stats API calls.</p>
<h2 id="D2010-01-13">2010-01-13 Flickcurl 1.16</h2>
<p>Fix <code>flickcurl(1)</code> utility configuration file
generation to use <code>key=value</code> format as documented. Make
the software accept files with spaces around the '='.
</p>
<p>Updated authentication documentation to add a picture showing the
result of fetching the mobile authentication URLs.
</p>
<h2 id="D2010-01-02">2010-01-02 Flickcurl 1.15</h2>
<p>The <code>flickcurl_search_params</code> gains an
<code>in_gallery</code> boolean field which was
added to the photos search API
<a href="http://www.flickr.com/groups/api/discuss/72157622404753248/#comment72157622896186411">as announced 2009-12-17</a>.
</p>
<p>The <code>flickcurl(1)</code> utility photos.search commands gains
geo-context taking an integer arg for inside/outside, is-commons
boolean flag and is-gallery boolean flag arguments.
</p>
<p>Update the authentication section of the documentation to
represent the Flickr App Garden changes. Add screen shots of
the steps in the flow to authenticate.
</p>
<p>Switch the build system to use automake 1.11
<code>AM_SILENT_RULES</code> enabled by default for maintainer, but
can be triggered with <code>--enable-silent-rules</code> in
configure.</p>
<h2 id="D2009-09-20">2009-09-20 Flickcurl 1.14</h2>
<p>Added a tutorial section to the documentation on how to use the
search API - search parameters, result formats, extras and walking
through the photos list results. Added a new example program
<code>search-photos.c</code> to demonstrate a full working program
searching for photos and using the results.
</p>
<p>The <code>flickcurl_search_params</code> structure gains
<code>geo_context</code> and <code>is_commons</code> search
parameters which were added to the search API at some time in the
past (geo_context before 10 March 2009). The Geo Context can be set
for photos with <code>flickcurl_photos_geo_setLocation()</code>
corresponding to the flickr.photos.geo.setLocation API call.
</p>
<p>The <code>flickcurl_extras_format_info</code> gains new
API 'extras': path_alias, url_m, url_o, url_s, url_sq, url_t as
<a href="http://tech.groups.yahoo.com/group/yws-flickr/message/5053">announced 2009-06-29</a>.
path_alias returns the user's Flickr URL as in <code>/photos/user</code>
and the others provide various computed URLs and dimensions for the photos
of a given size so that <code>flickcurl_photos_getSizes()</code>
calls can be avoided directly after a search.
</p>
<p>Apply a little resource leak fix to the video API when calloc fails -
patch from github fork by 'mr.huge at seznam dot cz'. Thanks.
</p>
<p>Fixed some off-by-1 errors in some static string allocation sizes.
</p>
<p>Small typos and fixes to <code>flickcurl(1)</code> utility messages.
</p>
<h2 id="D2009-08-01">2009-08-01 Flickcurl 1.13</h2>
<p>Added function
<code>flickcurl_source_uri_as_photo_id()</code> to get photo IDs from
full raw 'farm' image URLs. Added command <code>getphotoid</code>
to the command-line utility to allow this to be called.
</p>
<pre>
char* flickcurl_source_uri_as_photo_id(const char *uri);
</pre>
<p>Added function
<code>flickcurl_get_current_request_wait()</code> so applications can
know when flickcurl will delay - sleep(2) - in order to let the web
service rate limiting work. This allows the application to avoid
this and try again later if it desires, rather than have Flickcurl
freeze the entire application (if single threaded).
</p>
<pre>
int flickcurl_get_current_request_wait(flickcurl *fc);
</pre>
<p>Use a dynamic buffer size for request URI construction to avoid
crashing when dealing with requests with e.g. long lists of of photo
IDs that exceeded the "big enough" buffer for a URI. Bug noticed and
reported by Henning Spruth - thanks!
</p>
<p>After the above problem, reviewed the other fixed buffer sizes in
the code and they are all for known fixed uses such as formatting a
decimal number (of known size) into a string. None of the remaining
ones can be influenced by data passed by API calls.
</p>
<p>Fixed resource leak of user agent string in
<code>flickcurl_free()</code> found by Debarshi Ray - Thanks.
</p>
<h2 id="D2009-07-04">2009-07-04 Flickcurl 1.12</h2>
<p>Added function <code>flickcurl_places_getTopPlacesList()</code>
for new API call
<a href="http://www.flickr.com/services/api/flickr.places.getTopPlacesList.html">flickr.places.getTopPlacesList</a>.
</p>
<pre>
flickcurl_place** flickcurl_places_getTopPlacesList(flickcurl* fc,
flickcurl_place_type place_type, const char* date, int woe_id,
const char* place_id);
</pre>
<p>Added function <code>flickcurl_blogs_getServices()</code> and new
<code>flickcurl_blog_service</code> structure for describing a blog service.
for new API call
<a href="http://www.flickr.com/services/api/flickr.blogs.getServices.html">flickr.blogs.getServices</a>.
Added function
<code>flickcurl_free_blog_services()</code> to free blog services array.
</p>
<pre>
flickcurl_blog_service** flickcurl_blogs_getServices(flickcurl* fc);
void flickcurl_free_blog_services(flickcurl_blog_service **blog_services_object);
</pre>
<p>Added function
<code>flickcurl_photos_comments_getRecentForContacts_params()</code>
for new API call
<a href="http://www.flickr.com/services/api/flickr.photos.comments.getRecentForContacts.html">flickr.photos.comments.getRecentForContacts</a>
</p>
<p>Added function <code>flickcurl_machinetags_getRecentValues()</code>
for new API call
<a href="http://www.flickr.com/services/api/flickr.machinetags.getRecentValues.html">flickr.machinetags.getRecentValues</a>
</p>
<p>Added flickr collections API including new
<code>flickcurl_collection</code> datatype:</p>
<pre>
flickcurl_collection* flickcurl_collections_getInfo(flickcurl* fc,
const char* collection_id);
flickcurl_collection* flickcurl_collections_getTree(flickcurl* fc,
const char* collection_id, const char* user_id);
</pre>
<p>Added functions for generating <code>flic.kr</code> short URIs
from a photo object or photo ID:</p>
<pre>
char* flickcurl_photo_id_as_short_uri(char *photo_id);
char* flickcurl_photo_as_short_uri(flickcurl_photo *photo);
</pre>
<p>Fixed <code>flickcurl_invoke_common()</code> to always set / reset
HTTP headers list to allows requests that set/don't set headers to
work in sequence when called with the same flickcurl context. The
symptom of this was in long sequences with mixed reads and writes,
crashes or mysterious failures happened. Bug reported / found by
Henning Spruth - thanks!
</p>
<p>Added continent type to allow
<code>flickcurl_get_place_type_label()</code> and
<code>flickcurl_get_place_type_by_label()</code> to use. This allows
'continent' to be used in place APIs when called from
<code>flickcurl(1)</code> utility.
</p>
<p>Retrieve the place name from the <code><place></code>
element content as well as from attribute value. In the Flickr API,
there is always more than one way to get a field <code>;)</code>
</p>
<p>Switched from Subversion to GIT source control hosted by
<a href="http://github.com/">GitHub</a>.
The
<a href="http://github.com/dajobe/flickcurl/tree/master">GitHub flickcurl project page</a>.
previously was in Subversion at
<a href="http://svn.dajobe.org/view/">svn.dajobe.org</a>
and it moved as of SVN r1021 on 2006-06-02 after the 1.11 release tagged
<code>flickcurl_1_11</code>.
</p>
<p>Update SHAVE from master GIT 2134bb1207e06d1650918a56f6b142e9a840219d
</p>
<p>Added <code>flickcurl(1)</code> utility support for new API calls,
allow WOEID args to be "-" to omitted and to add a
<code>shorturi</code> command to generate <code>flic.kr</code> short
URIs from a photo ID.
</p>
<h2 id="D2009-05-26">2009-05-26 Flickcurl 1.11</h2>
<p><code>flickcurl_search_params</code> structure now has an integer
field <code>woe_id</code> for searching via Where On Earth IDs (WOEIDs).
Forgot to add this earlier!
</p>
<p>The <code>flickcurl</code> utility was updated to support
searching with the integer woeid parameter.</p>
<p>Search results now decode more of the extras that can be returned
in search queries when the <code>extras</code> field is set in the
query to a comma-separated list of things to return. The additions
with their extras names are: original dimensions (o_dims), photo
views count (views), simple list of tags (tags), photo user
information (owner), geo information (geo) and user buddy icons
(icons),
</p>
<p>Added new <code>flickcurl_photo</code> fields for 'extras' from
search results:
<code>PHOTO_FIELD_original_height</code>,
<code>PHOTO_FIELD_original_width</code>,
<code>PHOTO_FIELD_owner_iconfarm</code>,
<code>PHOTO_FIELD_owner_iconserver</code> and
<code>PHOTO_FIELD_views</code>
</p>
<p>Added donuthole support to shapes
as <a href="http://code.flickr.com/blog/2009/05/06/the-absence-and-the-anchor/">announced 2009-05-06</a>.
The <code>flicckurl_shapedata</code> structure now has
<code>is_donuthole</code> and <code>has_donuthole</code> boolean flag fields.
</p>
<p>Fix handling API calls return shape XML with slightly different
names so that places.getShapeHistory and places.getInfo both work
now (again?).</p>
<p>Added function to get a user buddy icon URI for a given user:
</p>
<pre>
char* flickcurl_user_icon_uri(int farm, int server, char *nsid);
</pre>
<p>Added function to get the user buddy icon URI from a user's photo:
</p>
<pre>
char* flickcurl_photo_as_user_icon_uri(flickcurl_photo *photo);
</pre>
<p>Added function to return the photo page URI of a photo:
</p>
<pre>
char* flickcurl_photo_as_page_uri(flickcurl_photo *photo);
</pre>
<p>Added timezone field support to place (This has not yet been
announced as an API change). The <code>flickcurl_place</code>
structure now has a <code>timezone</code> string field.
</p>
<p>Make more attempts to reset the libcurl context between requests
which should help in sequences of calls that mix GET (searches, get
information) and POST (uploading, deletions etc.) This is intended
to try to fix a hard-to-test report of crashes with multiple upload
and API calls on Solaris/SPARC.
</p>
<p>Configuration via <code>configure</code> now uses
<code>pkg-config(1)</code> to get the compile (CFLAGS) and link
(LIBS) flags info for libxml, libcurl and raptor. This should work
since those libraries have shipped the respective .pc file in
releases for some time.</p>
<p>Use <code>pkg-config raptor</code> configuration for checking
raptor presence, versions, cflags and libs rather than the
(deprecated) <code>raptor-config</code> program output.
</p>
<p>Added configure
<a href="http://git.lespiau.name/cgit/shave/">SHAVE support</a>
(<code>git clone git://git.lespiau.name/shave</code> ) to <em>"make
autotools output sane"</em> which amounts to much less verbose
messages when compiling. It is now enabled by default.</p>
<p>Compiling from subversion (<code>autogen.sh</code> or
<code>configure --enable-maintainer-mode</code>) requires Libtool V2
for consistency with my other projects.
</p>
<h2 id="D2009-05-01">2009-05-01 Flickcurl 1.10</h2>
<p>Made uploading images and replacing images work again.
</p>
<p>Added functions to set the service URIs for the image upload and
image replacing web services:</p>
<pre>
void flickcurl_set_upload_service_uri(flickcurl *fc, const char *uri);
void flickcurl_set_replace_service_uri(flickcurl *fc, const char *uri);
</pre>
<p>Added casts for compiling and using from C++ - the main change is
to rename internal variables and function arguments called
'namespace' to 'nspace'.</p>
<h2 id="D2009-04-04">2009-04-04 Flickcurl 1.9</h2>
<p>Added functions for 2 new API calls
<a href="http://www.flickr.com/services/api/flickr.panda.getList.html">flickr.panda.getList</a>
<a href="http://www.flickr.com/services/api/flickr.panda.getPhotos.html">flickr.panda.getPhotos</a>
as <a href="http://code.flickr.com/blog/2009/03/03/panda-tuesday-the-history-of-the-panda-new-apis-explore-and-you/">announced on 2009-03-03</a>
used in the vomiting
<a href="http://www.flickr.com/explore/panda">Flickr Panda</a>.
</p>
<pre>
char** flickcurl_panda_getList(flickcurl* fc);
flickcurl_photo** flickcurl_panda_getPhotos(flickcurl *fc,
const char *panda_name);
</pre>
<p>Added function for 1 new API call
<a href="http://www.flickr.com/services/api/flickr.groups.members.getList.html">flickr.groups.members.getList</a>
as
<a href="http://tech.groups.yahoo.com/group/yws-flickr/message/4749">announced as experimental on 2009-02-24</a>.
</p>
<pre>
flickcurl_member** flickcurl_groups_members_getList(flickcurl* fc,
const char* group_id, const char* membertypes, int per_page, int page);
</pre>
<p>
Updated the <code>flickcurl(1)</code> utility to support the 3 new calls.
</p>
<p>Fixed <code>flickcurl_photosets_getList()</code> to work again
with XML returned by the web service. Not clear if the service
changed since this used to work and the code did not change.
</p>
<p>Allow config file <code>~/.flickcurl.conf</code> (as used by
<code>flickcurl(1)</code> utility) to contain DOS newline sequence (\r\n)
as well as Unix (\n) and \r.
</p>
<p>Increased date buffer size in
<code>flickcurl_photos_setDates()</code> to prevent buffer overruns.
</p>
<h2 id="D2009-02-09">2009-02-09 Flickcurl 1.8</h2>
<p>Added support for new commons API with new institution class, new
photos geo and places APIs, and new shape history API with a new
shape structure class.</p>
<p>Added functions for 12 new API calls
<a href="http://www.flickr.com/services/api/flickr.commons.getInstitutions.html">flickr.commons.getInstitutions</a>,
<a href="http://www.flickr.com/services/api/flickr.contacts.getListRecentlyUploaded.html">flickr.contacts.getListRecentlyUploaded</a>,
<a href="http://www.flickr.com/services/api/flickr.photos.geo.batchCorrectLocation.html">flickr.photos.geo.batchCorrectLocation</a>,
<a href="http://www.flickr.com/services/api/flickr.photos.geo.correctLocation.html">flickr.photos.geo.correctLocation</a>,
<a href="http://www.flickr.com/services/api/flickr.photos.geo.photosForLocation.html">flickr.photos.geo.photosForLocation</a>,
<a href="http://www.flickr.com/services/api/flickr.photos.geo.setContext.html">flickr.photos.geo.setContext</a>,
<a href="http://www.flickr.com/services/api/flickr.places.getPlaceTypes.html">flickr.places.getPlaceTypes</a>,
<a href="http://www.flickr.com/services/api/flickr.places.getShapeHistory.html">flickr.places.getShapeHistory</a>,
<a href="http://www.flickr.com/services/api/flickr.places.placesForBoundingBox.html">flickr.places.placesForBoundingBox</a>,
<a href="http://www.flickr.com/services/api/flickr.places.placesForContacts.html">flickr.places.placesForContacts</a>,
<a href="http://www.flickr.com/services/api/flickr.places.placesForTags.html">flickr.places.placesForTags</a> and
<a href="http://www.flickr.com/services/api/flickr.places.tagsForPlace.html">flickr.places.tagsForPlace</a>
as announced
<a href="http://tech.groups.yahoo.com/group/yws-flickr/message/4669">2009-01-12</a> (flickr.places.getShapeHistory),
<a href="http://tech.groups.yahoo.com/group/yws-flickr/message/4668">2009-01-14</a> (flickr.contacts.getListRecentlyUploaded)
and
<a href="http://flickr.com/groups/api/discuss/72157613093793775/">2009-01-29</a> (Commons API):</p>
<pre>
flickcurl_institution** flickcurl_commons_getInstitutions(flickcurl* fc);
flickcurl_contact** flickcurl_contacts_getListRecentlyUploaded(flickcurl* fc,
int date_lastupload, const char* filter);
int flickcurl_photos_geo_batchCorrectLocation(flickcurl* fc,
flickcurl_location* location, const char* place_id, int woe_id);
int flickcurl_photos_geo_correctLocation(flickcurl* fc,
const char* photo_id, const char* place_id, int woe_id);
flickcurl_photo** flickcurl_photos_geo_photosForLocation(flickcurl* fc,
flickcurl_location* location, const char* extras, int per_page, int page);
flickcurl_photos_list* flickcurl_photos_geo_photosForLocation_params(flickcurl* fc,
flickcurl_location* location, flickcurl_photos_list_params* list_params);
int flickcurl_photos_geo_setContext(flickcurl* fc, const char* photo_id,
int context);
flickcurl_place_type_info** flickcurl_places_getPlaceTypes(flickcurl* fc);
flickcurl_shapedata** flickcurl_places_getShapeHistory(flickcurl* fc,
const char* place_id, int woe_id);
flickcurl_place** flickcurl_places_placesForBoundingBox(flickcurl* fc,
flickcurl_place_type place_type, double minimum_longitude,
double minimum_latitude, double maximum_longitude,
double maximum_latitude);
flickcurl_place** flickcurl_places_placesForContacts(flickcurl* fc,
flickcurl_place_type place_type, int woe_id, const char* place_id,
int threshold, const char* contacts, int min_upload_date,
int max_upload_date, int min_taken_date, int max_taken_date);
int flickcurl_places_placesForTags(flickcurl* fc,
flickcurl_place_type place_type, int woe_id, const char* place_id,
const char* threshold, const char* tags, const char* tag_mode,
const char* machine_tags, const char* machine_tag_mode,
const char* min_upload_date, const char* max_upload_date,
const char* min_taken_date, const char* max_taken_date);
flickcurl_tag** flickcurl_places_tagsForPlace(flickcurl* fc,
int woe_id, const char* place_id, int min_upload_date,
int max_upload_date, int min_taken_date, int max_taken_date);
</pre>
<p>Added destructors for new classes:</p>
<pre>
void flickcurl_free_institution(flickcurl_institution *);
void flickcurl_free_institutions(flickcurl_institution **);
void flickcurl_free_place_type_infos(flickcurl_place_type_info **);
void flickcurl_free_shape(flickcurl_shapedata *);
void flickcurl_free_shapes(flickcurl_shapedata **);
</pre>
<p>Added
<code>flickcurl_institution</code> class and
<code>flickcurl_institution_url_type</code> enum for URL types
for response from <code>flickcurl_commons_getInstitutions()</code>.
Added <code>flickcurl_free_institution()</code> and
<code>flickcurl_free_institutions()</code> destructors.
</p>
<p>Added <code>FLICKCURL_PLACE_CONTINENT</code> value to place
<code>flickcurl_location</code> enum.
</p>
<p>Added <code>flickcurl_place_type_info</code> for results of
<code>flickcurl_places_getPlaceTypes()</code>. Added
<code>flickcurl_free_place_type_infos()</code> destructor.
</p>
<p>Added new <code>flickcurl_shapedata</code> class to store shape
information, ESRI shape data and/or URLs returned by
<code>flickcurl_places_getShapeHistory()</code>.
</p>
<p><code>flickcurl_place</code> structure gains a <code>shape</code>
field returning a pointer to the <code>flickcurl_shapedata</code>
shape data, deprecating old shape fields.
Added <code>flickcurl_free_shape()</code> and
<code>flickcurl_free_shapes()</code> destructors.
</p>
<p><code>flickcurl_tag</code> gains a new uploaded field for use with
<code>flickcurl_contacts_getListRecentlyUploaded()</code>
</p>