File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
src/Skybrud.Social.TwentyThree/Options/Photos Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
- using Skybrud . Social . Http ;
1
+ using Skybrud . Social . Http ;
3
2
using Skybrud . Social . Interfaces . Http ;
4
3
5
4
namespace Skybrud . Social . TwentyThree . Options . Photos {
@@ -13,6 +12,16 @@ public class TwentyThreeGetPhotosOptions : IHttpGetOptions {
13
12
/// </summary>
14
13
public string PhotoId { get ; set ; }
15
14
15
+ /// <summary>
16
+ /// Gets or sets the token for a specific video/photo or an album − depending on whether <c>photo_id</c> or
17
+ /// <c>album_id</c> is set.
18
+ ///
19
+ /// Specifying either an <c>album_id/token</c> or a <c>photo_id/token</c> will give the client access to
20
+ /// information about the <c>video/photo/album/channel</c> irregardless of permission level. When requesting a
21
+ /// single photo object, tokens can be explicitly time-limited.
22
+ /// </summary>
23
+ public string Token { get ; set ; }
24
+
16
25
/// <summary>
17
26
/// Gets or sets whether videos should be included in the response.
18
27
///
@@ -34,7 +43,8 @@ public IHttpQueryString GetQueryString() {
34
43
35
44
IHttpQueryString query = new SocialHttpQueryString ( ) ;
36
45
37
- if ( String . IsNullOrWhiteSpace ( PhotoId ) == false ) query . Add ( "photo_id" , PhotoId ) ;
46
+ if ( string . IsNullOrWhiteSpace ( PhotoId ) == false ) query . Add ( "photo_id" , PhotoId ) ;
47
+ if ( string . IsNullOrWhiteSpace ( Token ) == false ) query . Add ( "token" , Token ) ;
38
48
39
49
switch ( Video ) {
40
50
case TwentyThreeVideoParameter . OnlyVideos :
You can’t perform that action at this time.
0 commit comments