45
54
<span class="returnvalue">char</span> * <a class="link" href="flickcurl-section-auth.html#flickcurl-auth-getToken" title="flickcurl_auth_getToken ()">flickcurl_auth_getToken</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
46
55
<em class="parameter"><code>const <span class="type">char</span> *frob</code></em>);
47
56
<span class="returnvalue">int</span> <a class="link" href="flickcurl-section-auth.html#flickcurl-auth-oauth-getAccessToken" title="flickcurl_auth_oauth_getAccessToken ()">flickcurl_auth_oauth_getAccessToken</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);
57
extern const char* const <a class="link" href="flickcurl-section-auth.html#flickcurl-flickr-oauth-access-token-uri" title="flickcurl_flickr_oauth_access_token_uri">flickcurl_flickr_oauth_access_token_uri</a>;
58
extern const char* const <a class="link" href="flickcurl-section-auth.html#flickcurl-flickr-oauth-authorize-uri" title="flickcurl_flickr_oauth_authorize_uri">flickcurl_flickr_oauth_authorize_uri</a>;
59
extern const char* const <a class="link" href="flickcurl-section-auth.html#flickcurl-flickr-oauth-request-token-uri" title="flickcurl_flickr_oauth_request_token_uri">flickcurl_flickr_oauth_request_token_uri</a>;
60
const <span class="returnvalue">char</span> * <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-client-key" title="flickcurl_get_oauth_client_key ()">flickcurl_get_oauth_client_key</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);
61
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-client-key" title="flickcurl_set_oauth_client_key ()">flickcurl_set_oauth_client_key</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
62
<em class="parameter"><code>const <span class="type">char</span> *client_key</code></em>);
63
const <span class="returnvalue">char</span> * <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-client-secret" title="flickcurl_get_oauth_client_secret ()">flickcurl_get_oauth_client_secret</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);
64
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-client-secret" title="flickcurl_set_oauth_client_secret ()">flickcurl_set_oauth_client_secret</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
65
<em class="parameter"><code>const <span class="type">char</span> *client_secret</code></em>);
66
const <span class="returnvalue">char</span> * <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-request-token" title="flickcurl_get_oauth_request_token ()">flickcurl_get_oauth_request_token</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);
67
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-request-token" title="flickcurl_set_oauth_request_token ()">flickcurl_set_oauth_request_token</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
68
<em class="parameter"><code>const <span class="type">char</span> *token</code></em>);
69
const <span class="returnvalue">char</span> * <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-request-token-secret" title="flickcurl_get_oauth_request_token_secret ()">flickcurl_get_oauth_request_token_secret</a>
70
(<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);
71
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-request-token-secret" title="flickcurl_set_oauth_request_token_secret ()">flickcurl_set_oauth_request_token_secret</a>
72
(<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
73
<em class="parameter"><code>const <span class="type">char</span> *secret</code></em>);
74
const <span class="returnvalue">char</span> * <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-token" title="flickcurl_get_oauth_token ()">flickcurl_get_oauth_token</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);
75
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-token" title="flickcurl_set_oauth_token ()">flickcurl_set_oauth_token</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
76
<em class="parameter"><code>const <span class="type">char</span> *token</code></em>);
77
const <span class="returnvalue">char</span> * <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-token-secret" title="flickcurl_get_oauth_token_secret ()">flickcurl_get_oauth_token_secret</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);
78
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-token-secret" title="flickcurl_set_oauth_token_secret ()">flickcurl_set_oauth_token_secret</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
79
<em class="parameter"><code>const <span class="type">char</span> *secret</code></em>);
80
const <span class="returnvalue">char</span> * <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-username" title="flickcurl_get_oauth_username ()">flickcurl_get_oauth_username</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);
81
const <span class="returnvalue">char</span> * <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-user-nsid" title="flickcurl_get_oauth_user_nsid ()">flickcurl_get_oauth_user_nsid</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);
82
<span class="returnvalue">int</span> <a class="link" href="flickcurl-section-auth.html#flickcurl-oauth-create-request-token" title="flickcurl_oauth_create_request_token ()">flickcurl_oauth_create_request_token</a>
83
(<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
84
<em class="parameter"><code>const <span class="type">char</span> *callback</code></em>);
85
<span class="returnvalue">char</span> * <a class="link" href="flickcurl-section-auth.html#flickcurl-oauth-get-authorize-uri" title="flickcurl_oauth_get_authorize_uri ()">flickcurl_oauth_get_authorize_uri</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);
86
<span class="returnvalue">int</span> <a class="link" href="flickcurl-section-auth.html#flickcurl-oauth-create-access-token" title="flickcurl_oauth_create_access_token ()">flickcurl_oauth_create_access_token</a> (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
87
<em class="parameter"><code>const <span class="type">char</span> *verifier</code></em>);
50
90
<div class="refsect1">
56
96
<div class="refsect1">
57
97
<a name="flickcurl-section-auth.details"></a><h2>Details</h2>
58
98
<div class="refsect2">
99
<a name="flickcurl-get-api-key"></a><h3>flickcurl_get_api_key ()</h3>
100
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_api_key (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
102
Get current application API Key (OAuth Client key)
104
<div class="variablelist"><table border="0">
105
<col align="left" valign="top">
108
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
109
<td>flickcurl object</td>
112
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
113
<td>API key or NULL if none set</td>
119
<div class="refsect2">
120
<a name="flickcurl-set-api-key"></a><h3>flickcurl_set_api_key ()</h3>
121
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_api_key (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
122
<em class="parameter"><code>const <span class="type">char</span> *api_key</code></em>);</pre>
124
Set legacy Flickr auth application API Key (OAuth Client key)
127
For OAuth this is not sufficient and
128
<a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-client-key" title="flickcurl_set_oauth_client_key ()"><code class="function">flickcurl_set_oauth_client_key()</code></a> and
129
<a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-client-secret" title="flickcurl_set_oauth_client_secret ()"><code class="function">flickcurl_set_oauth_client_secret()</code></a> be used
130
to pass both the client key and client secret.
132
<div class="variablelist"><table border="0">
133
<col align="left" valign="top">
136
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
137
<td>flickcurl object</td>
140
<td><p><span class="term"><em class="parameter"><code>api_key</code></em> :</span></p></td>
147
<div class="refsect2">
148
<a name="flickcurl-get-shared-secret"></a><h3>flickcurl_get_shared_secret ()</h3>
149
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_shared_secret (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
151
Get legacy Flickr auth Secret
153
<div class="variablelist"><table border="0">
154
<col align="left" valign="top">
157
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
158
<td>flickcurl object</td>
161
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
162
<td>shared secret or NULL if none set</td>
168
<div class="refsect2">
169
<a name="flickcurl-set-shared-secret"></a><h3>flickcurl_set_shared_secret ()</h3>
170
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_shared_secret (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
171
<em class="parameter"><code>const <span class="type">char</span> *secret</code></em>);</pre>
173
Set legacy Flickr auth secret
175
<div class="variablelist"><table border="0">
176
<col align="left" valign="top">
179
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
180
<td>flickcurl object</td>
183
<td><p><span class="term"><em class="parameter"><code>secret</code></em> :</span></p></td>
184
<td>shared secret</td>
190
<div class="refsect2">
191
<a name="flickcurl-get-auth-token"></a><h3>flickcurl_get_auth_token ()</h3>
192
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_auth_token (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
194
Get legacy Flickr auth Token
196
<div class="variablelist"><table border="0">
197
<col align="left" valign="top">
200
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
201
<td>flickcurl object</td>
204
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
205
<td>auth token or NULL if none set</td>
211
<div class="refsect2">
212
<a name="flickcurl-set-auth-token"></a><h3>flickcurl_set_auth_token ()</h3>
213
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_auth_token (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
214
<em class="parameter"><code>const <span class="type">char</span> *auth_token</code></em>);</pre>
216
Set legacy Flickr auth Token
218
<div class="variablelist"><table border="0">
219
<col align="left" valign="top">
222
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
223
<td>flickcurl object</td>
226
<td><p><span class="term"><em class="parameter"><code>auth_token</code></em> :</span></p></td>
233
<div class="refsect2">
59
234
<a name="flickcurl-auth-checkToken"></a><h3>flickcurl_auth_checkToken ()</h3>
60
235
<pre class="programlisting"><span class="returnvalue">char</span> * flickcurl_auth_checkToken (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
61
236
<em class="parameter"><code>const <span class="type">char</span> *token</code></em>);</pre>
384
<div class="refsect2">
385
<a name="flickcurl-flickr-oauth-access-token-uri"></a><h3>flickcurl_flickr_oauth_access_token_uri</h3>
386
<pre class="programlisting">extern const char* const flickcurl_flickr_oauth_access_token_uri;
392
<div class="refsect2">
393
<a name="flickcurl-flickr-oauth-authorize-uri"></a><h3>flickcurl_flickr_oauth_authorize_uri</h3>
394
<pre class="programlisting">extern const char* const flickcurl_flickr_oauth_authorize_uri;
400
<div class="refsect2">
401
<a name="flickcurl-flickr-oauth-request-token-uri"></a><h3>flickcurl_flickr_oauth_request_token_uri</h3>
402
<pre class="programlisting">extern const char* const flickcurl_flickr_oauth_request_token_uri;
408
<div class="refsect2">
409
<a name="flickcurl-get-oauth-client-key"></a><h3>flickcurl_get_oauth_client_key ()</h3>
410
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_oauth_client_key (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
412
Get OAuth Client Key (aka Consumer key, API Key)
415
See also <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-client-secret" title="flickcurl_get_oauth_client_secret ()"><code class="function">flickcurl_get_oauth_client_secret()</code></a>
417
<div class="variablelist"><table border="0">
418
<col align="left" valign="top">
421
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
422
<td>flickcurl object</td>
425
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
426
<td>client key or NULL if none set</td>
432
<div class="refsect2">
433
<a name="flickcurl-set-oauth-client-key"></a><h3>flickcurl_set_oauth_client_key ()</h3>
434
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_oauth_client_key (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
435
<em class="parameter"><code>const <span class="type">char</span> *client_key</code></em>);</pre>
437
Set OAuth client key (aka API key)
440
See also <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-client-key" title="flickcurl_get_oauth_client_key ()"><code class="function">flickcurl_get_oauth_client_key()</code></a>
442
<div class="variablelist"><table border="0">
443
<col align="left" valign="top">
446
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
447
<td>flickcurl object</td>
450
<td><p><span class="term"><em class="parameter"><code>client_key</code></em> :</span></p></td>
451
<td>client key (API key)</td>
457
<div class="refsect2">
458
<a name="flickcurl-get-oauth-client-secret"></a><h3>flickcurl_get_oauth_client_secret ()</h3>
459
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_oauth_client_secret (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
461
Get OAuth Client secret
464
See also <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-client-key" title="flickcurl_get_oauth_client_key ()"><code class="function">flickcurl_get_oauth_client_key()</code></a>
466
<div class="variablelist"><table border="0">
467
<col align="left" valign="top">
470
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
471
<td>flickcurl object</td>
474
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
475
<td>client secret or NULL if none set</td>
481
<div class="refsect2">
482
<a name="flickcurl-set-oauth-client-secret"></a><h3>flickcurl_set_oauth_client_secret ()</h3>
483
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_oauth_client_secret (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
484
<em class="parameter"><code>const <span class="type">char</span> *client_secret</code></em>);</pre>
486
Set OAuth client key (aka shared secret)
489
See also <a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-client-secret" title="flickcurl_set_oauth_client_secret ()"><code class="function">flickcurl_set_oauth_client_secret()</code></a>
491
<div class="variablelist"><table border="0">
492
<col align="left" valign="top">
495
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
496
<td>flickcurl object</td>
499
<td><p><span class="term"><em class="parameter"><code>client_secret</code></em> :</span></p></td>
500
<td>client key (shared key)</td>
506
<div class="refsect2">
507
<a name="flickcurl-get-oauth-request-token"></a><h3>flickcurl_get_oauth_request_token ()</h3>
508
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_oauth_request_token (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
510
Get OAuth request token
512
<div class="variablelist"><table border="0">
513
<col align="left" valign="top">
516
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
517
<td>flickcurl object</td>
520
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
521
<td>request token or NULL if none set</td>
527
<div class="refsect2">
528
<a name="flickcurl-set-oauth-request-token"></a><h3>flickcurl_set_oauth_request_token ()</h3>
529
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_oauth_request_token (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
530
<em class="parameter"><code>const <span class="type">char</span> *token</code></em>);</pre>
532
Set OAuth request token
535
See also <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-request-token" title="flickcurl_get_oauth_request_token ()"><code class="function">flickcurl_get_oauth_request_token()</code></a>
537
<div class="variablelist"><table border="0">
538
<col align="left" valign="top">
541
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
542
<td>flickcurl object</td>
545
<td><p><span class="term"><em class="parameter"><code>token</code></em> :</span></p></td>
546
<td>request token</td>
552
<div class="refsect2">
553
<a name="flickcurl-get-oauth-request-token-secret"></a><h3>flickcurl_get_oauth_request_token_secret ()</h3>
554
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_oauth_request_token_secret
555
(<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
557
Get OAuth request token secret
559
<div class="variablelist"><table border="0">
560
<col align="left" valign="top">
563
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
564
<td>flickcurl object</td>
567
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
568
<td>request token secret or NULL if none set</td>
574
<div class="refsect2">
575
<a name="flickcurl-set-oauth-request-token-secret"></a><h3>flickcurl_set_oauth_request_token_secret ()</h3>
576
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_oauth_request_token_secret
577
(<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
578
<em class="parameter"><code>const <span class="type">char</span> *secret</code></em>);</pre>
580
Set OAuth request token secret credentials
583
See also <a class="link" href="flickcurl-section-auth.html#flickcurl-get-oauth-request-token-secret" title="flickcurl_get_oauth_request_token_secret ()"><code class="function">flickcurl_get_oauth_request_token_secret()</code></a>
585
<div class="variablelist"><table border="0">
586
<col align="left" valign="top">
589
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
590
<td>flickcurl object</td>
593
<td><p><span class="term"><em class="parameter"><code>secret</code></em> :</span></p></td>
594
<td>request token secret</td>
600
<div class="refsect2">
601
<a name="flickcurl-get-oauth-token"></a><h3>flickcurl_get_oauth_token ()</h3>
602
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_oauth_token (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
606
<div class="variablelist"><table border="0">
607
<col align="left" valign="top">
610
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
611
<td>flickcurl object</td>
614
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
615
<td>auth token or NULL if none set</td>
621
<div class="refsect2">
622
<a name="flickcurl-set-oauth-token"></a><h3>flickcurl_set_oauth_token ()</h3>
623
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_oauth_token (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
624
<em class="parameter"><code>const <span class="type">char</span> *token</code></em>);</pre>
628
<div class="variablelist"><table border="0">
629
<col align="left" valign="top">
632
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
633
<td>flickcurl object</td>
636
<td><p><span class="term"><em class="parameter"><code>token</code></em> :</span></p></td>
643
<div class="refsect2">
644
<a name="flickcurl-get-oauth-token-secret"></a><h3>flickcurl_get_oauth_token_secret ()</h3>
645
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_oauth_token_secret (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
647
Get OAuth token secret
649
<div class="variablelist"><table border="0">
650
<col align="left" valign="top">
653
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
654
<td>flickcurl object</td>
657
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
658
<td>secret or NULL if none set</td>
664
<div class="refsect2">
665
<a name="flickcurl-set-oauth-token-secret"></a><h3>flickcurl_set_oauth_token_secret ()</h3>
666
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_oauth_token_secret (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
667
<em class="parameter"><code>const <span class="type">char</span> *secret</code></em>);</pre>
669
Set OAuth token Secret
671
<div class="variablelist"><table border="0">
672
<col align="left" valign="top">
675
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
676
<td>flickcurl object</td>
679
<td><p><span class="term"><em class="parameter"><code>secret</code></em> :</span></p></td>
680
<td>shared secret</td>
686
<div class="refsect2">
687
<a name="flickcurl-get-oauth-username"></a><h3>flickcurl_get_oauth_username ()</h3>
688
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_oauth_username (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
690
Get the username for the authenticated user
692
<div class="variablelist"><table border="0">
693
<col align="left" valign="top">
696
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
697
<td>flickcurl object</td>
700
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
701
<td>username or NULL if none set</td>
707
<div class="refsect2">
708
<a name="flickcurl-get-oauth-user-nsid"></a><h3>flickcurl_get_oauth_user_nsid ()</h3>
709
<pre class="programlisting">const <span class="returnvalue">char</span> * flickcurl_get_oauth_user_nsid (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
711
Get the user_nsid for the authenticated user
713
<div class="variablelist"><table border="0">
714
<col align="left" valign="top">
717
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
718
<td>flickcurl object</td>
721
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
722
<td>user_nsid or NULL if none set</td>
728
<div class="refsect2">
729
<a name="flickcurl-oauth-create-request-token"></a><h3>flickcurl_oauth_create_request_token ()</h3>
730
<pre class="programlisting"><span class="returnvalue">int</span> flickcurl_oauth_create_request_token
731
(<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
732
<em class="parameter"><code>const <span class="type">char</span> *callback</code></em>);</pre>
734
Request an OAuth request token from Flickr for the application API Key/secret
737
Requires the OAuth Client key (API key) and Client secret to have
738
been set with <a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-client-key" title="flickcurl_set_oauth_client_key ()"><code class="function">flickcurl_set_oauth_client_key()</code></a> and
739
<a class="link" href="flickcurl-section-auth.html#flickcurl-set-oauth-client-secret" title="flickcurl_set_oauth_client_secret ()"><code class="function">flickcurl_set_oauth_client_secret()</code></a> respectively.
742
Calls the Flickr OAuth endpoint to get a request token for the
743
given callback or uses out-of-band if <em class="parameter"><code>callback</code></em> is NULL.
746
On success, stores the request token in the <em class="parameter"><code>fc</code></em> structure.
748
<div class="variablelist"><table border="0">
749
<col align="left" valign="top">
752
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
753
<td>flickcurl object</td>
756
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
757
<td>callback URL or NULL for out of band</td>
760
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
761
<td>non-0 on failure</td>
767
<div class="refsect2">
768
<a name="flickcurl-oauth-get-authorize-uri"></a><h3>flickcurl_oauth_get_authorize_uri ()</h3>
769
<pre class="programlisting"><span class="returnvalue">char</span> * flickcurl_oauth_get_authorize_uri (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
771
Get the URL for the user to authorize Flickr OAuth of an application
774
Forms the URL the user needs to start at to authorize the
778
This function requires <a class="link" href="flickcurl-section-auth.html#flickcurl-oauth-create-request-token" title="flickcurl_oauth_create_request_token ()"><code class="function">flickcurl_oauth_create_request_token()</code></a> to have
779
been called to build a request token / secret pair.
782
After this function, the application should pass the verifier to
783
<a class="link" href="flickcurl-section-auth.html#flickcurl-oauth-create-access-token" title="flickcurl_oauth_create_access_token ()"><code class="function">flickcurl_oauth_create_access_token()</code></a> for the final step in OAuth along
784
with the request token and request token secret.
786
<div class="variablelist"><table border="0">
787
<col align="left" valign="top">
790
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
791
<td>flickcurl object</td>
794
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
795
<td>authorize URI or NULL on failure</td>
801
<div class="refsect2">
802
<a name="flickcurl-oauth-create-access-token"></a><h3>flickcurl_oauth_create_access_token ()</h3>
803
<pre class="programlisting"><span class="returnvalue">int</span> flickcurl_oauth_create_access_token (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
804
<em class="parameter"><code>const <span class="type">char</span> *verifier</code></em>);</pre>
806
Get a Flickr OAuth access token from request token credentials and verifier
809
Calls the Flickr OAuth access token endpoint using the verifier
810
from out of band authentication to get an access token to enable
811
authenticated calls to the Flickr API.
813
<div class="variablelist"><table border="0">
814
<col align="left" valign="top">
817
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
818
<td>flickcurl object</td>
821
<td><p><span class="term"><em class="parameter"><code>verifier</code></em> :</span></p></td>
822
<td>verifier from OOB authentication</td>
825
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
826
<td>non-0 on failure</td>
204
833
<div class="footer">