182 lines
7.0 KiB
C#
182 lines
7.0 KiB
C#
// https://developers.band.us/develop/guide/api/get_post
|
|
|
|
// Request
|
|
// URL
|
|
// [GET] https://openapi.band.us/v2.1/band/post
|
|
|
|
// Parameters
|
|
// Parameters
|
|
// Name|Type|Mandatory|Description
|
|
// access_token|string|Y|Access token of the user
|
|
// band_key|string|Y|Band ID
|
|
// post_key|string|Y|Post ID
|
|
// Response
|
|
// response body (json)
|
|
// response body (json)
|
|
// Name|Type|Description
|
|
// result_code|integer|Result code (success: 1)
|
|
// result_data.post|object|Post details
|
|
// result_data > post
|
|
// result_data > post
|
|
// Name|Type|Description
|
|
// content|string|Body of a post. Note that HTML tags are escaped (if applicable).
|
|
// ex) tag : <band:refer user_key="abcde">user name</band:refer>
|
|
// author|object|Author information
|
|
// post_key|string|Post ID
|
|
// comment_count|int|The number of comments
|
|
// created_at|long|Published date and time
|
|
// photo|object|Information on photos and videos. Videos are shown first.
|
|
// emotion_count|int|The number of emotions
|
|
// band_key|string|Band ID
|
|
// post_read_count|int|Read count
|
|
// result_data > post > author
|
|
// result_data > post > author
|
|
// Name|Type|Description
|
|
// name|string|Author name
|
|
// description|string|Description about the author
|
|
// role|string|Author's role
|
|
// profile_image_url|string|URL of an author's profile image
|
|
// user_key|string|User ID of an author
|
|
// result_data > post > photo
|
|
// result_data > post > photo
|
|
// Name|Type|Description
|
|
// height|int|Height of an image
|
|
// width|int|Width of an image
|
|
// created_at|long|Created date and time
|
|
// url|string|URL of an image
|
|
// author|object|Information on the user who uploaded the photo/video. Same format as post author.
|
|
// photo_album_key|string|Album ID
|
|
// photo_key|string|Photo ID
|
|
// comment_count|int|The number of comments
|
|
// emotion_count|int|The number of emotions
|
|
// is_video_thumbnail|boolean|Indicates whether the image is a video thumbnail or not.
|
|
|
|
// {
|
|
// "result_code": 1,
|
|
// "result_data": {
|
|
// "post": {
|
|
// "author": {
|
|
// "description": "",
|
|
// "name": "Jordan",
|
|
// "profile_image_url": "http://coresos.phinf.naver.net/a/yyy/xxx.png",
|
|
// "role": "member",
|
|
// "user_key": "AACv2efNJhMjHOgGWhfhXg25"
|
|
// },
|
|
// "band_key": "AAAbBbMeQHBLh3-y8xxogqBg",
|
|
// "comment_count": 0,
|
|
// "content": "This is Cotents.\n To be continue... <band:attachment type=\"photo\" id=\"3452\" /><band:attachment type=\"video\" id=\"675\" />",
|
|
// "created_at": 1484303791000,
|
|
// "emotion_count": 0,
|
|
// "is_multilingual": false,
|
|
// "photo": {
|
|
// "5110026620": {
|
|
// "author": {
|
|
// "description": "",
|
|
// "name": "Charley",
|
|
// "profile_image_url": "http://coresos.phinf.naver.net/a/2hj6eg_i/yyyyy.png",
|
|
// "role": "member",
|
|
// "user_key": "AACv2efNJhMjHOgGWhfhXg25"
|
|
// },
|
|
// "comment_count": 0,
|
|
// "created_at": 1484303791000,
|
|
// "emotion_count": 0,
|
|
// "height": 1920,
|
|
// "is_video_thumbnail": false,
|
|
// "photo_album_key": null,
|
|
// "photo_key": "AACVbWOG62mcbDJjaYOkSO2c",
|
|
// "url": "http://coresos.phinf.naver.net/a/2hjc4i_d/zzzzz.jpg",
|
|
// "width": 1440
|
|
// }
|
|
// },
|
|
// "post_key": "AAAFJEEalAmkhLXGh0rQCy3h",
|
|
// "post_read_count": 0,
|
|
// "shared_count": 0,
|
|
// "video": {
|
|
// "175284037": {
|
|
// "author": {
|
|
// "description": "",
|
|
// "name": "미니0",
|
|
// "profile_image_url": "http://coresos.phinf.naver.net/a/xxxx/xxxxx.png",
|
|
// "role": "member",
|
|
// "user_key": "AACv2efNJhMjHOgGWhfhXg25"
|
|
// },
|
|
// "comment_count": 0,
|
|
// "created_at": 1484303791000,
|
|
// "emotion_count": 0,
|
|
// "height": 360,
|
|
// "is_video_thumbnail": true,
|
|
// "photo_album_key": null,
|
|
// "photo_key": "AAD7LTDVWfB5GE80Usi_0Y_H",
|
|
// "url": "http://coresos.phinf.naver.net/a/yyyy/yyyy.jpg",
|
|
// "width": 640
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
// public record _175284037(
|
|
// [property: JsonPropertyName("author")] Author Author,
|
|
// [property: JsonPropertyName("comment_count")] int CommentCount,
|
|
// [property: JsonPropertyName("created_at")] long CreatedAt,
|
|
// [property: JsonPropertyName("emotion_count")] int EmotionCount,
|
|
// [property: JsonPropertyName("height")] int Height,
|
|
// [property: JsonPropertyName("is_video_thumbnail")] bool IsVideoThumbnail,
|
|
// [property: JsonPropertyName("photo_album_key")] object PhotoAlbumKey,
|
|
// [property: JsonPropertyName("photo_key")] string PhotoKey,
|
|
// [property: JsonPropertyName("url")] string Url,
|
|
// [property: JsonPropertyName("width")] int Width
|
|
// );
|
|
|
|
// public record _5110026620(
|
|
// [property: JsonPropertyName("author")] Author Author,
|
|
// [property: JsonPropertyName("comment_count")] int CommentCount,
|
|
// [property: JsonPropertyName("created_at")] long CreatedAt,
|
|
// [property: JsonPropertyName("emotion_count")] int EmotionCount,
|
|
// [property: JsonPropertyName("height")] int Height,
|
|
// [property: JsonPropertyName("is_video_thumbnail")] bool IsVideoThumbnail,
|
|
// [property: JsonPropertyName("photo_album_key")] object PhotoAlbumKey,
|
|
// [property: JsonPropertyName("photo_key")] string PhotoKey,
|
|
// [property: JsonPropertyName("url")] string Url,
|
|
// [property: JsonPropertyName("width")] int Width
|
|
// );
|
|
|
|
// public record Author(
|
|
// [property: JsonPropertyName("description")] string Description,
|
|
// [property: JsonPropertyName("name")] string Name,
|
|
// [property: JsonPropertyName("profile_image_url")] string ProfileImageUrl,
|
|
// [property: JsonPropertyName("role")] string Role,
|
|
// [property: JsonPropertyName("user_key")] string UserKey
|
|
// );
|
|
|
|
// public record Photo(
|
|
// [property: JsonPropertyName("5110026620")] _5110026620 _5110026620
|
|
// );
|
|
|
|
// public record Post(
|
|
// [property: JsonPropertyName("author")] Author Author,
|
|
// [property: JsonPropertyName("band_key")] string BandKey,
|
|
// [property: JsonPropertyName("comment_count")] int CommentCount,
|
|
// [property: JsonPropertyName("content")] string Content,
|
|
// [property: JsonPropertyName("created_at")] long CreatedAt,
|
|
// [property: JsonPropertyName("emotion_count")] int EmotionCount,
|
|
// [property: JsonPropertyName("is_multilingual")] bool IsMultilingual,
|
|
// [property: JsonPropertyName("photo")] Photo Photo,
|
|
// [property: JsonPropertyName("post_key")] string PostKey,
|
|
// [property: JsonPropertyName("post_read_count")] int PostReadCount,
|
|
// [property: JsonPropertyName("shared_count")] int SharedCount,
|
|
// [property: JsonPropertyName("video")] Video Video
|
|
// );
|
|
|
|
// public record ResultData(
|
|
// [property: JsonPropertyName("post")] Post Post
|
|
// );
|
|
|
|
// public record Root(
|
|
// [property: JsonPropertyName("result_code")] int ResultCode,
|
|
// [property: JsonPropertyName("result_data")] ResultData ResultData
|
|
// );
|
|
|
|
// public record Video(
|
|
// [property: JsonPropertyName("175284037")] _175284037 _175284037
|
|
// ); |