diff --git a/models/activityView.js b/models/activityView.js index 9045c00..e05765f 100644 --- a/models/activityView.js +++ b/models/activityView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/appCompactView.js b/models/appCompactView.js index 369e2ec..ec04439 100644 --- a/models/appCompactView.js +++ b/models/appCompactView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/buildsCurrentResponse.js b/models/buildsCurrentResponse.js index 7ca6e4e..769ae4f 100644 --- a/models/buildsCurrentResponse.js +++ b/models/buildsCurrentResponse.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/commentView.js b/models/commentView.js index f6efbef..59647b3 100644 --- a/models/commentView.js +++ b/models/commentView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/contentCompactView.js b/models/contentCompactView.js index 461dec4..7d57f4f 100644 --- a/models/contentCompactView.js +++ b/models/contentCompactView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/countResponse.js b/models/countResponse.js index 6f4a688..9638bea 100644 --- a/models/countResponse.js +++ b/models/countResponse.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/feedResponseActivityView.js b/models/feedResponseActivityView.js index 937b68f..1ceb2ca 100644 --- a/models/feedResponseActivityView.js +++ b/models/feedResponseActivityView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/feedResponseCommentView.js b/models/feedResponseCommentView.js index bf82f55..2eb8139 100644 --- a/models/feedResponseCommentView.js +++ b/models/feedResponseCommentView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/feedResponseReplyView.js b/models/feedResponseReplyView.js index 925083f..4cfd82f 100644 --- a/models/feedResponseReplyView.js +++ b/models/feedResponseReplyView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/feedResponseTopicView.js b/models/feedResponseTopicView.js index e115f14..f3bde72 100644 --- a/models/feedResponseTopicView.js +++ b/models/feedResponseTopicView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/feedResponseUserCompactView.js b/models/feedResponseUserCompactView.js index dcf21f4..25e7f6a 100644 --- a/models/feedResponseUserCompactView.js +++ b/models/feedResponseUserCompactView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/feedResponseUserProfileView.js b/models/feedResponseUserProfileView.js index 093206d..406f81f 100644 --- a/models/feedResponseUserProfileView.js +++ b/models/feedResponseUserProfileView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/getRequestTokenResponse.js b/models/getRequestTokenResponse.js index 07086c4..82b90e4 100644 --- a/models/getRequestTokenResponse.js +++ b/models/getRequestTokenResponse.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/index.d.ts b/models/index.d.ts index 542ad29..3e85704 100644 --- a/models/index.d.ts +++ b/models/index.d.ts @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ @@ -690,7 +691,8 @@ export interface PostReportRequest { * @constructor * Request to post (create) session * @member {string} identityProvider Gets or sets identity provider type. - * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter', + * 'Beihai' * * @member {string} [accessToken] Gets or sets access or authentication token, * user code, or verifier obtained from third-party provider. @@ -862,7 +864,8 @@ export interface PutTopicRequest { * @constructor * Request to post (create) user * @member {string} identityProvider Gets or sets identity provider type. - * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter', + * 'Beihai' * * @member {string} [accessToken] Gets or sets access or authentication token * obtained from third-party provider. @@ -1037,7 +1040,8 @@ export interface FeedResponseUserProfileView { * @constructor * Request to post (create) linked account * @member {string} identityProvider Gets or sets identity provider type. - * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter', + * 'Beihai' * * @member {string} [accessToken] Gets or sets access or authentication token, * user code, or verifier obtained from third-party provider. @@ -1063,7 +1067,8 @@ export interface PostLinkedAccountRequest { * @constructor * Linked account view * @member {string} identityProvider Gets or sets identity provider type. - * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter', + * 'Beihai' * * @member {string} accountId Gets or sets third party account id -- Unique * user id provided by the third-party identity provider diff --git a/models/index.js b/models/index.js index 6d3aa5d..d153d48 100644 --- a/models/index.js +++ b/models/index.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ /* jshint latedef:false */ diff --git a/models/linkedAccountView.js b/models/linkedAccountView.js index add9138..7612cfb 100644 --- a/models/linkedAccountView.js +++ b/models/linkedAccountView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; @@ -11,7 +12,8 @@ * @constructor * Linked account view * @member {string} identityProvider Gets or sets identity provider type. - * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter', + * 'Beihai' * * @member {string} accountId Gets or sets third party account id -- Unique * user id provided by the third-party identity provider @@ -39,7 +41,7 @@ LinkedAccountView.prototype.mapper = function () { serializedName: 'identityProvider', type: { name: 'Enum', - allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ] + allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ] } }, accountId: { diff --git a/models/postBlobResponse.js b/models/postBlobResponse.js index 9a3c1d1..c0d6530 100644 --- a/models/postBlobResponse.js +++ b/models/postBlobResponse.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postBlockedUserRequest.js b/models/postBlockedUserRequest.js index 5cdc091..4171c61 100644 --- a/models/postBlockedUserRequest.js +++ b/models/postBlockedUserRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postCommentRequest.js b/models/postCommentRequest.js index 07124b6..2db422f 100644 --- a/models/postCommentRequest.js +++ b/models/postCommentRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postCommentResponse.js b/models/postCommentResponse.js index a53a56a..b29d852 100644 --- a/models/postCommentResponse.js +++ b/models/postCommentResponse.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postFollowerRequest.js b/models/postFollowerRequest.js index 1c74d65..ce10585 100644 --- a/models/postFollowerRequest.js +++ b/models/postFollowerRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postFollowingRequest.js b/models/postFollowingRequest.js index df95fc5..17385ec 100644 --- a/models/postFollowingRequest.js +++ b/models/postFollowingRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postImageResponse.js b/models/postImageResponse.js index 493f6fd..e476c3d 100644 --- a/models/postImageResponse.js +++ b/models/postImageResponse.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postLinkedAccountRequest.js b/models/postLinkedAccountRequest.js index 82dbbbf..d9ad2fd 100644 --- a/models/postLinkedAccountRequest.js +++ b/models/postLinkedAccountRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; @@ -11,7 +12,8 @@ * @constructor * Request to post (create) linked account * @member {string} identityProvider Gets or sets identity provider type. - * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter', + * 'Beihai' * * @member {string} [accessToken] Gets or sets access or authentication token, * user code, or verifier obtained from third-party provider. @@ -47,7 +49,7 @@ PostLinkedAccountRequest.prototype.mapper = function () { serializedName: 'identityProvider', type: { name: 'Enum', - allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ] + allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ] } }, accessToken: { diff --git a/models/postPinRequest.js b/models/postPinRequest.js index 189bf23..ce469a1 100644 --- a/models/postPinRequest.js +++ b/models/postPinRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postReplyRequest.js b/models/postReplyRequest.js index 503ecec..e141e7a 100644 --- a/models/postReplyRequest.js +++ b/models/postReplyRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postReplyResponse.js b/models/postReplyResponse.js index 344338c..e51c81f 100644 --- a/models/postReplyResponse.js +++ b/models/postReplyResponse.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postReportRequest.js b/models/postReportRequest.js index e9bde13..5b94193 100644 --- a/models/postReportRequest.js +++ b/models/postReportRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postSessionRequest.js b/models/postSessionRequest.js index 8e07515..fc45e2c 100644 --- a/models/postSessionRequest.js +++ b/models/postSessionRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; @@ -11,7 +12,8 @@ * @constructor * Request to post (create) session * @member {string} identityProvider Gets or sets identity provider type. - * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter', + * 'Beihai' * * @member {string} [accessToken] Gets or sets access or authentication token, * user code, or verifier obtained from third-party provider. @@ -53,7 +55,7 @@ PostSessionRequest.prototype.mapper = function () { serializedName: 'identityProvider', type: { name: 'Enum', - allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ] + allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ] } }, accessToken: { diff --git a/models/postSessionResponse.js b/models/postSessionResponse.js index 3371a5a..57183a5 100644 --- a/models/postSessionResponse.js +++ b/models/postSessionResponse.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postTopicRequest.js b/models/postTopicRequest.js index 39bf3f3..9f2e434 100644 --- a/models/postTopicRequest.js +++ b/models/postTopicRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postTopicResponse.js b/models/postTopicResponse.js index d4d157d..d9a5f1a 100644 --- a/models/postTopicResponse.js +++ b/models/postTopicResponse.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/postUserRequest.js b/models/postUserRequest.js index 458349a..a411e71 100644 --- a/models/postUserRequest.js +++ b/models/postUserRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; @@ -11,7 +12,8 @@ * @constructor * Request to post (create) user * @member {string} identityProvider Gets or sets identity provider type. - * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter', + * 'Beihai' * * @member {string} [accessToken] Gets or sets access or authentication token * obtained from third-party provider. @@ -58,7 +60,7 @@ PostUserRequest.prototype.mapper = function () { serializedName: 'identityProvider', type: { name: 'Enum', - allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ] + allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ] } }, accessToken: { diff --git a/models/postUserResponse.js b/models/postUserResponse.js index 80ffa4d..dedeec2 100644 --- a/models/postUserResponse.js +++ b/models/postUserResponse.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/putNotificationsStatusRequest.js b/models/putNotificationsStatusRequest.js index 40e0bcc..5efe608 100644 --- a/models/putNotificationsStatusRequest.js +++ b/models/putNotificationsStatusRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/putPushRegistrationRequest.js b/models/putPushRegistrationRequest.js index 095fd8b..c6ec1a3 100644 --- a/models/putPushRegistrationRequest.js +++ b/models/putPushRegistrationRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/putTopicRequest.js b/models/putTopicRequest.js index a407fc2..84991fa 100644 --- a/models/putTopicRequest.js +++ b/models/putTopicRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/putUserInfoRequest.js b/models/putUserInfoRequest.js index 76910c6..5cca17c 100644 --- a/models/putUserInfoRequest.js +++ b/models/putUserInfoRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/putUserPhotoRequest.js b/models/putUserPhotoRequest.js index 4b946f2..d6726e3 100644 --- a/models/putUserPhotoRequest.js +++ b/models/putUserPhotoRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/putUserVisibilityRequest.js b/models/putUserVisibilityRequest.js index cb9ed53..78dcbaf 100644 --- a/models/putUserVisibilityRequest.js +++ b/models/putUserVisibilityRequest.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/replyView.js b/models/replyView.js index e40e58a..44558eb 100644 --- a/models/replyView.js +++ b/models/replyView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/topicView.js b/models/topicView.js index 3ae0dd6..46f0c27 100644 --- a/models/topicView.js +++ b/models/topicView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/userCompactView.js b/models/userCompactView.js index 47ee7cd..d032ddd 100644 --- a/models/userCompactView.js +++ b/models/userCompactView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/models/userProfileView.js b/models/userProfileView.js index 4b8aea7..71a1473 100644 --- a/models/userProfileView.js +++ b/models/userProfileView.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/blobs.js b/operations/blobs.js index 488327b..92b0fd4 100644 --- a/operations/blobs.js +++ b/operations/blobs.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/builds.js b/operations/builds.js index 446e471..6c29dd8 100644 --- a/operations/builds.js +++ b/operations/builds.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/commentLikes.js b/operations/commentLikes.js index e33ba42..cbdae36 100644 --- a/operations/commentLikes.js +++ b/operations/commentLikes.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/commentReplies.js b/operations/commentReplies.js index 5d1fe85..08da03e 100644 --- a/operations/commentReplies.js +++ b/operations/commentReplies.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/commentReports.js b/operations/commentReports.js index 70f717a..db6215b 100644 --- a/operations/commentReports.js +++ b/operations/commentReports.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/comments.js b/operations/comments.js index 82c5605..93a5e0a 100644 --- a/operations/comments.js +++ b/operations/comments.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/hashtags.js b/operations/hashtags.js index 11a7448..0beec2d 100644 --- a/operations/hashtags.js +++ b/operations/hashtags.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/images.js b/operations/images.js index 99da511..ff9f080 100644 --- a/operations/images.js +++ b/operations/images.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; @@ -119,7 +120,7 @@ Images.prototype.postImage = function (imageType, authorization, image, options, } } } - httpRequest.headers['Content-Type'] = 'image'; + httpRequest.headers['Content-Type'] = 'image/gif'; // Serialize Request var requestContent = image; httpRequest.body = requestContent; diff --git a/operations/index.d.ts b/operations/index.d.ts index 236e6db..4d81cfb 100644 --- a/operations/index.d.ts +++ b/operations/index.d.ts @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ import { ServiceClientOptions, RequestOptions, ServiceCallback } from 'ms-rest'; @@ -1050,7 +1051,8 @@ export interface Sessions { * @param {object} request Post session request * * @param {string} [request.identityProvider] Gets or sets identity provider - * type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * type. Possible values include: 'Facebook', 'Microsoft', 'Google', + * 'Twitter', 'Beihai' * * @param {string} [request.accessToken] Gets or sets access or authentication * token, user code, or verifier obtained from third-party provider. @@ -1115,7 +1117,7 @@ export interface RequestTokens { * @summary Get request token * * @param {string} identityProvider Identity provider type. Possible values - * include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * include: 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' * * @param {object} [options] Optional Parameters. * @@ -1841,12 +1843,30 @@ export interface MyApps { export interface Users { /** - * @summary Create a new user + * @summary Create a new user using the following flow: + * 1. Validate and parse the identity provider access token to + * construct an identity provider user + * 2. If identity provider user present in linked account + * table, read user profile for this specific application from user profile + * table + * 3. If user profile exists, return user conflict + * 4. Otherwise, it means that the user does not have a + * profile for this particular application. Create one. + * 5. Otherwise, the identity provider user is not present. + * Create the user, and its user profile. + * 6. Generate session token, and return + * The purpose of steps 2-4 is to ensure that if the user has + * already registered with us using the same identity provider + * but for a different SocialPlus application, we reuse his + * user-handle and just resume to create a new profile for this specific + * SocialPlus application. The end result is that we know it is + * the same user in both apps. * * @param {object} request Post user request * * @param {string} [request.identityProvider] Gets or sets identity provider - * type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * type. Possible values include: 'Facebook', 'Microsoft', 'Google', + * 'Twitter', 'Beihai' * * @param {string} [request.accessToken] Gets or sets access or authentication * token obtained from third-party provider. @@ -2094,7 +2114,8 @@ export interface MyLinkedAccounts { * @param {object} request Post linked account request * * @param {string} [request.identityProvider] Gets or sets identity provider - * type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * type. Possible values include: 'Facebook', 'Microsoft', 'Google', + * 'Twitter', 'Beihai' * * @param {string} [request.accessToken] Gets or sets access or authentication * token, user code, or verifier obtained from third-party provider. @@ -2125,7 +2146,7 @@ export interface MyLinkedAccounts { * @summary Delete linked account * * @param {string} identityProvider Identity provider type. Possible values - * include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * include: 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' * * @param {string} authorization Authenication (must begin with string "Bearer * ") diff --git a/operations/index.js b/operations/index.js index 19bc609..78f310b 100644 --- a/operations/index.js +++ b/operations/index.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ /* jshint latedef:false */ diff --git a/operations/myAppFollowing.js b/operations/myAppFollowing.js index b9efd14..eca8063 100644 --- a/operations/myAppFollowing.js +++ b/operations/myAppFollowing.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/myApps.js b/operations/myApps.js index 33482f3..4cd25b7 100644 --- a/operations/myApps.js +++ b/operations/myApps.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/myBlockedUsers.js b/operations/myBlockedUsers.js index 5413430..0a6ad7c 100644 --- a/operations/myBlockedUsers.js +++ b/operations/myBlockedUsers.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/myFollowers.js b/operations/myFollowers.js index 6ac8c33..0f76967 100644 --- a/operations/myFollowers.js +++ b/operations/myFollowers.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/myFollowing.js b/operations/myFollowing.js index 494c06d..64ff11a 100644 --- a/operations/myFollowing.js +++ b/operations/myFollowing.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/myLikes.js b/operations/myLikes.js index a0bdb27..1fa118b 100644 --- a/operations/myLikes.js +++ b/operations/myLikes.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/myLinkedAccounts.js b/operations/myLinkedAccounts.js index 1dc00a7..e1f49fe 100644 --- a/operations/myLinkedAccounts.js +++ b/operations/myLinkedAccounts.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; @@ -161,7 +162,8 @@ MyLinkedAccounts.prototype.getLinkedAccounts = function (authorization, options, * @param {object} request Post linked account request * * @param {string} [request.identityProvider] Gets or sets identity provider - * type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * type. Possible values include: 'Facebook', 'Microsoft', 'Google', + * 'Twitter', 'Beihai' * * @param {string} [request.accessToken] Gets or sets access or authentication * token, user code, or verifier obtained from third-party provider. @@ -316,7 +318,7 @@ MyLinkedAccounts.prototype.postLinkedAccount = function (request, authorization, * @summary Delete linked account * * @param {string} identityProvider Identity provider type. Possible values - * include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * include: 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' * * @param {string} authorization Authenication (must begin with string "Bearer * ") @@ -350,7 +352,7 @@ MyLinkedAccounts.prototype.deleteLinkedAccount = function (identityProvider, aut // Validate try { if (identityProvider) { - var allowedValues = [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ]; + var allowedValues = [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ]; if (!allowedValues.some( function(item) { return item === identityProvider; })) { throw new Error(identityProvider + ' is not a valid value. The valid values are: ' + allowedValues); } diff --git a/operations/myNotifications.js b/operations/myNotifications.js index d2e88fe..1e3240c 100644 --- a/operations/myNotifications.js +++ b/operations/myNotifications.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/myPendingUsers.js b/operations/myPendingUsers.js index 5d54277..3d2ef9c 100644 --- a/operations/myPendingUsers.js +++ b/operations/myPendingUsers.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/myPins.js b/operations/myPins.js index 58c2fa4..b65e874 100644 --- a/operations/myPins.js +++ b/operations/myPins.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/myPushRegistrations.js b/operations/myPushRegistrations.js index f60e521..578a8d1 100644 --- a/operations/myPushRegistrations.js +++ b/operations/myPushRegistrations.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/myTopics.js b/operations/myTopics.js index 895b919..ebd3236 100644 --- a/operations/myTopics.js +++ b/operations/myTopics.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/replies.js b/operations/replies.js index 1da5f05..a4bdc12 100644 --- a/operations/replies.js +++ b/operations/replies.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/replyLikes.js b/operations/replyLikes.js index 74d3557..4498932 100644 --- a/operations/replyLikes.js +++ b/operations/replyLikes.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/replyReports.js b/operations/replyReports.js index 504c36a..bb27a4e 100644 --- a/operations/replyReports.js +++ b/operations/replyReports.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/requestTokens.js b/operations/requestTokens.js index 2df806a..cb22023 100644 --- a/operations/requestTokens.js +++ b/operations/requestTokens.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; @@ -27,7 +28,7 @@ function RequestTokens(client) { * @summary Get request token * * @param {string} identityProvider Identity provider type. Possible values - * include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * include: 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' * * @param {object} [options] Optional Parameters. * @@ -67,7 +68,7 @@ RequestTokens.prototype.getRequestToken = function (identityProvider, options, c // Validate try { if (identityProvider) { - var allowedValues = [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ]; + var allowedValues = [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ]; if (!allowedValues.some( function(item) { return item === identityProvider; })) { throw new Error(identityProvider + ' is not a valid value. The valid values are: ' + allowedValues); } diff --git a/operations/search.js b/operations/search.js index 74e57da..1a7beb0 100644 --- a/operations/search.js +++ b/operations/search.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/sessions.js b/operations/sessions.js index 4016249..5c57afc 100644 --- a/operations/sessions.js +++ b/operations/sessions.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; @@ -29,7 +30,8 @@ function Sessions(client) { * @param {object} request Post session request * * @param {string} [request.identityProvider] Gets or sets identity provider - * type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * type. Possible values include: 'Facebook', 'Microsoft', 'Google', + * 'Twitter', 'Beihai' * * @param {string} [request.accessToken] Gets or sets access or authentication * token, user code, or verifier obtained from third-party provider. diff --git a/operations/topicComments.js b/operations/topicComments.js index a8933c3..03ce792 100644 --- a/operations/topicComments.js +++ b/operations/topicComments.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/topicLikes.js b/operations/topicLikes.js index e0d2d21..e9ca647 100644 --- a/operations/topicLikes.js +++ b/operations/topicLikes.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/topicReports.js b/operations/topicReports.js index 51dd140..33a8616 100644 --- a/operations/topicReports.js +++ b/operations/topicReports.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/topics.js b/operations/topics.js index d6c4bb4..be2b974 100644 --- a/operations/topics.js +++ b/operations/topics.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/userFollowers.js b/operations/userFollowers.js index 750a7db..416e0ca 100644 --- a/operations/userFollowers.js +++ b/operations/userFollowers.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/userFollowing.js b/operations/userFollowing.js index e0b5581..8bb1bfb 100644 --- a/operations/userFollowing.js +++ b/operations/userFollowing.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/userReports.js b/operations/userReports.js index fa54c7e..810d70a 100644 --- a/operations/userReports.js +++ b/operations/userReports.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/userTopics.js b/operations/userTopics.js index 88745d0..4d571ac 100644 --- a/operations/userTopics.js +++ b/operations/userTopics.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; diff --git a/operations/users.js b/operations/users.js index 815afc0..c565322 100644 --- a/operations/users.js +++ b/operations/users.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ 'use strict'; @@ -24,12 +25,30 @@ function Users(client) { } /** - * @summary Create a new user + * @summary Create a new user using the following flow: + * 1. Validate and parse the identity provider access token to + * construct an identity provider user + * 2. If identity provider user present in linked account + * table, read user profile for this specific application from user profile + * table + * 3. If user profile exists, return user conflict + * 4. Otherwise, it means that the user does not have a + * profile for this particular application. Create one. + * 5. Otherwise, the identity provider user is not present. + * Create the user, and its user profile. + * 6. Generate session token, and return + * The purpose of steps 2-4 is to ensure that if the user has + * already registered with us using the same identity provider + * but for a different SocialPlus application, we reuse his + * user-handle and just resume to create a new profile for this specific + * SocialPlus application. The end result is that we know it is + * the same user in both apps. * * @param {object} request Post user request * * @param {string} [request.identityProvider] Gets or sets identity provider - * type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter' + * type. Possible values include: 'Facebook', 'Microsoft', 'Google', + * 'Twitter', 'Beihai' * * @param {string} [request.accessToken] Gets or sets access or authentication * token obtained from third-party provider. diff --git a/socialPlusClient.d.ts b/socialPlusClient.d.ts index d10b998..8499314 100644 --- a/socialPlusClient.d.ts +++ b/socialPlusClient.d.ts @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ import { ServiceClientOptions, RequestOptions, ServiceCallback } from 'ms-rest'; diff --git a/socialPlusClient.js b/socialPlusClient.js index c9acf9a..2db2013 100644 --- a/socialPlusClient.js +++ b/socialPlusClient.js @@ -1,6 +1,7 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. + * This file was generated using AutoRest. */ /* jshint latedef:false */ diff --git a/swagger-original.json b/swagger-original.json new file mode 100644 index 0000000..79bdc0a --- /dev/null +++ b/swagger-original.json @@ -0,0 +1 @@ +{"swagger":"2.0","info":{"version":"v0_2","title":"SocialPlus","description":"The SocialPlus interface to clients is a HTTP API which is documented here.","termsOfService":"ToS TBD","contact":{"name":"Social Plus Team","email":"socialplus@microsoft.com"},"license":{"name":"License TBD","url":"http://research.microsoft.com"}},"host":"localhost:1324","schemes":["http"],"paths":{"/v0.2/blobs":{"post":{"tags":["Blobs"],"summary":"Upload a blob","description":"If your blob is an image, use image APIs. For all other blob types, use this API.","operationId":"Blobs_PostBlob","consumes":["application/octet-stream"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"},{"name":"blob","in":"body","description":"MIME encoded contents of the blob","required":true,"schema":{"format":"file","type":"object"}}],"responses":{"201":{"description":"Created. The response contains the blob handle.","schema":{"$ref":"#/definitions/PostBlobResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/blobs/{blobHandle}":{"get":{"tags":["Blobs"],"summary":"Get blob","operationId":"Blobs_GetBlob","consumes":[],"produces":["application/octet-stream"],"parameters":[{"name":"blobHandle","in":"path","description":"Blob handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"description":"MIME encoded contents of the blob","type":"file"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The blob is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/builds/current":{"get":{"tags":["Builds"],"summary":"The build information for this service","description":"This API is meant to be called by humans for debugging","operationId":"Builds_GetBuildsCurrent","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/BuildsCurrentResponse"}}},"deprecated":false}},"/v0.2/topics/{topicHandle}/comments":{"get":{"tags":["Comments"],"summary":"Get comments for a topic","operationId":"TopicComments_GetTopicComments","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[CommentView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Comments"],"summary":"Create a new comment","operationId":"TopicComments_PostComment","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"request","in":"body","description":"Post comment request","required":true,"schema":{"$ref":"#/definitions/PostCommentRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"201":{"description":"Created. The response contains the comment handle.","schema":{"$ref":"#/definitions/PostCommentResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/comments/{commentHandle}":{"get":{"tags":["Comments"],"summary":"Get comment","operationId":"Comments_GetComment","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/CommentView"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"delete":{"tags":["Comments"],"summary":"Delete comment","operationId":"Comments_DeleteComment","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/hashtags/trending":{"get":{"tags":["Hashtags"],"summary":"Get trending hashtags","operationId":"Hashtags_GetTrendingHashtags","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"type":"array","items":{"type":"string"}}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/hashtags/autocomplete":{"get":{"tags":["Hashtags"],"summary":"Get autocompleted hashtags","operationId":"Hashtags_GetAutocompletedHashtags","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"query","in":"query","description":"Search query","required":true,"type":"string"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"type":"array","items":{"type":"string"}}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/images/{imageType}":{"post":{"tags":["Images"],"summary":"Upload a new image","description":"Images will be resized. To access a resized image, append the 1 character size identifier to the blobHandle that is returned.\r\nd = 25 pixels wide\r\nh = 50 pixels wide\r\nl = 100 pixels wide\r\np = 250 pixels wide\r\nt = 500 pixels wide\r\nx = 1000 pixels wide\r\nImageType.UserPhoto supports d,h,l,p,t,x\r\nImageType.ContentBlob supports d,h,l,p,t,x\r\nImageType.AppIcon supports l\r\nAll resized images will maintain their aspect ratio. Any orientation specified in the EXIF headers will be honored.","operationId":"Images_PostImage","consumes":["image/gif","image/jpeg","image/png"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"imageType","in":"path","description":"Image type","required":true,"type":"string","enum":["UserPhoto","ContentBlob","AppIcon"]},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"},{"name":"image","in":"body","description":"MIME encoded contents of the image","required":true,"schema":{"format":"file","type":"object"}}],"responses":{"201":{"description":"Created. The response contains the image handle.","schema":{"$ref":"#/definitions/PostImageResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/images/{blobHandle}":{"get":{"tags":["Images"],"summary":"Get image","operationId":"Images_GetImage","consumes":[],"produces":["image/gif","image/jpeg","image/png"],"parameters":[{"name":"blobHandle","in":"path","description":"Blob handle","required":true,"type":"string"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"description":"MIME encoded contents of the image","type":"file"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The image is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/comments/{commentHandle}/likes":{"get":{"tags":["Likes"],"summary":"Get likes for comment","operationId":"CommentLikes_GetLikes","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Likes"],"summary":"Add like to comment","operationId":"CommentLikes_PostLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/comments/{commentHandle}/likes/me":{"delete":{"tags":["Likes"],"summary":"Remove like from comment","operationId":"CommentLikes_DeleteLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/replies/{replyHandle}/likes":{"get":{"tags":["Likes"],"summary":"Get likes for reply","operationId":"ReplyLikes_GetLikes","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Likes"],"summary":"Add like to reply","operationId":"ReplyLikes_PostLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/replies/{replyHandle}/likes/me":{"delete":{"tags":["Likes"],"summary":"Remove like from reply","operationId":"ReplyLikes_DeleteLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics/{topicHandle}/likes":{"get":{"tags":["Likes"],"summary":"Get likes for topic","operationId":"TopicLikes_GetLikes","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Likes"],"summary":"Add like to topic","operationId":"TopicLikes_PostLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics/{topicHandle}/likes/me":{"delete":{"tags":["Likes"],"summary":"Remove like from topic","operationId":"TopicLikes_DeleteLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/notifications/status":{"put":{"tags":["Notifications"],"summary":"Update notifications status","operationId":"MyNotifications_PutNotificationsStatus","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Put notifications status request","required":true,"schema":{"$ref":"#/definitions/PutNotificationsStatusRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/notifications":{"get":{"tags":["Notifications"],"summary":"Get notifications","operationId":"MyNotifications_GetNotifications","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[ActivityView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/notifications/count":{"get":{"tags":["Notifications"],"summary":"Get unread notifications count","operationId":"MyNotifications_GetNotificationsCount","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/CountResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/pins":{"get":{"tags":["Pins"],"summary":"Get my pins","operationId":"MyPins_GetPins","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Pins"],"summary":"Pin a topic","operationId":"MyPins_PostPin","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post pin request","required":true,"schema":{"$ref":"#/definitions/PostPinRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/pins/{topicHandle}":{"delete":{"tags":["Pins"],"summary":"Unpin a topic","operationId":"MyPins_DeletePin","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/push_registrations/{platform}/{registrationId}":{"put":{"tags":["Push Notifications"],"summary":"Register for push notifications or update existing registration","operationId":"MyPushRegistrations_PutPushRegistration","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"platform","in":"path","description":"Platform type","required":true,"type":"string","enum":["Windows","Android","IOS"]},{"name":"registrationId","in":"path","description":"Unique registration id provided by the mobile OS.\r\n For Android, this is the GCM registration ID.\r\n For Windows, this is the PushNotificationChannel URI.\r\n For iOS, this is the device token.","required":true,"type":"string"},{"name":"request","in":"body","description":"Put push registration request","required":true,"schema":{"$ref":"#/definitions/PutPushRegistrationRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"401":{"description":"Unauthorized. The user or the app is not authorized."},"409":{"description":"Conflict. LastUpdatedTime is in the future."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"delete":{"tags":["Push Notifications"],"summary":"Unregister from push notifications","operationId":"MyPushRegistrations_DeletePushRegistration","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"platform","in":"path","description":"Platform type","required":true,"type":"string","enum":["Windows","Android","IOS"]},{"name":"registrationId","in":"path","description":"Unique registration id provided by the mobile OS.\r\n For Android, this is the GCM registration ID.\r\n For Windows, this is the PushNotificationChannel URI.\r\n For iOS, this is the device token.","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The push registrationId was not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/comments/{commentHandle}/replies":{"get":{"tags":["Replies"],"summary":"Get replies for a comment","operationId":"CommentReplies_GetReplies","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[ReplyView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Replies"],"summary":"Create a new reply","operationId":"CommentReplies_PostReply","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"request","in":"body","description":"Post reply request","required":true,"schema":{"$ref":"#/definitions/PostReplyRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"201":{"description":"Created. The response contains the reply handle.","schema":{"$ref":"#/definitions/PostReplyResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/replies/{replyHandle}":{"get":{"tags":["Replies"],"summary":"Get reply","operationId":"Replies_GetReply","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/ReplyView"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"delete":{"tags":["Replies"],"summary":"Delete reply","operationId":"Replies_DeleteReply","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}/reports":{"post":{"tags":["Reporting"],"summary":"Report user","operationId":"UserReports_PostReport","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"postReportRequest","in":"body","description":"Post report request","required":true,"schema":{"$ref":"#/definitions/PostReportRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/replies/{replyHandle}/reports":{"post":{"tags":["Reporting"],"summary":"Report reply","operationId":"ReplyReports_PostReport","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"postReportRequest","in":"body","description":"Post report request","required":true,"schema":{"$ref":"#/definitions/PostReportRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/comments/{commentHandle}/reports":{"post":{"tags":["Reporting"],"summary":"Report comment","operationId":"CommentReports_PostReport","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"postReportRequest","in":"body","description":"Post report request","required":true,"schema":{"$ref":"#/definitions/PostReportRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics/{topicHandle}/reports":{"post":{"tags":["Reporting"],"summary":"Report topic","operationId":"TopicReports_PostReport","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"postReportRequest","in":"body","description":"Post report request","required":true,"schema":{"$ref":"#/definitions/PostReportRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/search/topics":{"get":{"tags":["Search"],"summary":"Search topics with a query","operationId":"Search_GetTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"query","in":"query","description":"Search query","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/search/users":{"get":{"tags":["Search"],"summary":"Search users with a query","operationId":"Search_GetUsers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"query","in":"query","description":"Search query","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/sessions":{"post":{"tags":["Sessions"],"summary":"Create a new session (sign in)","operationId":"Sessions_PostSession","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post session request","required":true,"schema":{"$ref":"#/definitions/PostSessionRequest"}},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"201":{"description":"Created. The response contains user handle and session token.","schema":{"$ref":"#/definitions/PostSessionResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found. The app needs to call create user to create a new user."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/sessions/current":{"delete":{"tags":["Sessions"],"summary":"Delete the current session (sign out)","operationId":"Sessions_DeleteSession","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/request_tokens/{identityProvider}":{"get":{"tags":["Sessions"],"summary":"Get request token","operationId":"RequestTokens_GetRequestToken","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"identityProvider","in":"path","description":"Identity provider type","required":true,"type":"string","enum":["Facebook","Microsoft","Google","Twitter","Beihai"]},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/GetRequestTokenResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/following":{"get":{"tags":["Social"],"summary":"Get my following","operationId":"MyFollowing_GetFollowing","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Social"],"summary":"Follow user","operationId":"MyFollowing_PostFollowing","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post following request","required":true,"schema":{"$ref":"#/definitions/PostFollowingRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/following/{userHandle}":{"delete":{"tags":["Social"],"summary":"Unfollow user","operationId":"MyFollowing_DeleteFollowing","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/following/topics/{topicHandle}":{"delete":{"tags":["Social"],"summary":"Hide topic from my following topics","operationId":"MyFollowing_DeleteTopic","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/following/topics":{"get":{"tags":["Social"],"summary":"Get my following topic feed","operationId":"MyFollowing_GetTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/following/activities":{"get":{"tags":["Social"],"summary":"Get my following activity feed","operationId":"MyFollowing_GetActivities","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[ActivityView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}/followers":{"get":{"tags":["Social"],"summary":"Get followers of a user","operationId":"UserFollowers_GetFollowers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/followers":{"get":{"tags":["Social"],"summary":"Get my followers","operationId":"MyFollowers_GetFollowers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Social"],"summary":"Accept follower request","operationId":"MyFollowers_PostFollower","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post follower request","required":true,"schema":{"$ref":"#/definitions/PostFollowerRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"403":{"description":"Forbidden. The request cannot be performed."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/followers/{userHandle}":{"delete":{"tags":["Social"],"summary":"Remove follower","operationId":"MyFollowers_DeleteFollower","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}/following":{"get":{"tags":["Social"],"summary":"Get following users of a user","operationId":"UserFollowing_GetFollowing","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/pending_users/{userHandle}":{"delete":{"tags":["Social"],"summary":"Reject follower request","operationId":"MyPendingUsers_DeletePendingUser","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/pending_users":{"get":{"tags":["Social"],"summary":"Get my pending users","operationId":"MyPendingUsers_GetPendingUsers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/pending_users/count":{"get":{"tags":["Social"],"summary":"Get my pending users count","operationId":"MyPendingUsers_GetPendingUsersCount","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/CountResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/blocked_users":{"get":{"tags":["Social"],"summary":"Get my blocked users","operationId":"MyBlockedUsers_GetBlockedUsers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Social"],"summary":"Block user","operationId":"MyBlockedUsers_PostBlockedUser","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post blocked user request","required":true,"schema":{"$ref":"#/definitions/PostBlockedUserRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/blocked_users/{userHandle}":{"delete":{"tags":["Social"],"summary":"Unblock user","operationId":"MyBlockedUsers_DeleteBlockedUser","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics":{"get":{"tags":["Topics"],"summary":"Get recent topics","operationId":"Topics_GetTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Topics"],"summary":"Create a new topic","operationId":"Topics_PostTopic","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post topic request","required":true,"schema":{"$ref":"#/definitions/PostTopicRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"201":{"description":"Created. The response contains the topic handle.","schema":{"$ref":"#/definitions/PostTopicResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."},"501":{"description":"Not implemented. The server is yet to implement this feature."}},"deprecated":false}},"/v0.2/topics/{topicHandle}":{"get":{"tags":["Topics"],"summary":"Get topic","operationId":"Topics_GetTopic","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/TopicView"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"put":{"tags":["Topics"],"summary":"Update topic","operationId":"Topics_PutTopic","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"request","in":"body","description":"Put topic request","required":true,"schema":{"$ref":"#/definitions/PutTopicRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"delete":{"tags":["Topics"],"summary":"Delete topic","operationId":"Topics_DeleteTopic","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics/popular/{timeRange}":{"get":{"tags":["Topics"],"summary":"Get popular topics today","operationId":"Topics_GetPopularTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"timeRange","in":"path","description":"Time range","required":true,"type":"string","enum":["Today","ThisWeek","ThisMonth","AllTime"]},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics/featured":{"get":{"tags":["Topics"],"summary":"Get featured topics","operationId":"Topics_GetFeaturedTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/apps/{appHandle}/following/difference":{"get":{"tags":["Users"],"summary":"Find users the current user is following in another app but not in the current app","operationId":"MyAppFollowing_GetUsers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"appHandle","in":"path","description":"App handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/topics":{"get":{"tags":["Users"],"summary":"Get my topics sorted by creation time","operationId":"MyTopics_GetTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/topics/popular":{"get":{"tags":["Users"],"summary":"Get my topics sorted by popularity","operationId":"MyTopics_GetPopularTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/apps":{"get":{"tags":["Users"],"summary":"Get my list of Social Plus apps","operationId":"MyApps_GetApps","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"type":"array","items":{"$ref":"#/definitions/AppCompactView"}}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users":{"post":{"tags":["Users"],"summary":"Create a new user using the following flow:\r\n 1. Validate and parse the identity provider access token to construct an identity provider user\r\n 2. If identity provider user present in linked account table, read user profile for this specific application from user profile table\r\n 3. If user profile exists, return user conflict\r\n 4. Otherwise, it means that the user does not have a profile for this particular application. Create one.\r\n 5. Otherwise, the identity provider user is not present. Create the user, and its user profile.\r\n 6. Generate session token, and return\r\n The purpose of steps 2-4 is to ensure that if the user has already registered with us using the same identity provider\r\n but for a different SocialPlus application, we reuse his user-handle and just resume to create a new profile for this specific \r\n SocialPlus application. The end result is that we know it is the same user in both apps.","operationId":"Users_PostUser","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post user request","required":true,"schema":{"$ref":"#/definitions/PostUserRequest"}},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"201":{"description":"Created. The response contains user handle and session token.","schema":{"$ref":"#/definitions/PostUserResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"409":{"description":"Conflict. Item already exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me":{"get":{"tags":["Users"],"summary":"Get my profile","operationId":"Users_GetMyProfile","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/UserProfileView"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"delete":{"tags":["Users"],"summary":"Delete user","operationId":"Users_DeleteUser","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/info":{"put":{"tags":["Users"],"summary":"Update user info","operationId":"Users_PutUserInfo","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Put user info request","required":true,"schema":{"$ref":"#/definitions/PutUserInfoRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/photo":{"put":{"tags":["Users"],"summary":"Update user photo","operationId":"Users_PutUserPhoto","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Put user photo request","required":true,"schema":{"$ref":"#/definitions/PutUserPhotoRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/visibility":{"put":{"tags":["Users"],"summary":"Update user visibility","operationId":"Users_PutUserVisibility","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Put user visibility request","required":true,"schema":{"$ref":"#/definitions/PutUserVisibilityRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}":{"get":{"tags":["Users"],"summary":"Get user profile","operationId":"Users_GetUser","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/UserProfileView"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/popular":{"get":{"tags":["Users"],"summary":"Get popular users","operationId":"Users_GetPopularUsers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserProfileView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/likes/topics":{"get":{"tags":["Users"],"summary":"Get my liked topics","operationId":"MyLikes_GetLikedTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/linked_accounts":{"get":{"tags":["Users"],"summary":"Get linked accounts","operationId":"MyLinkedAccounts_GetLinkedAccounts","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"type":"array","items":{"$ref":"#/definitions/LinkedAccountView"}}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Users"],"summary":"Create a new linked account","operationId":"MyLinkedAccounts_PostLinkedAccount","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post linked account request","required":true,"schema":{"$ref":"#/definitions/PostLinkedAccountRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"409":{"description":"Conflict. Item already exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/linked_accounts/{identityProvider}":{"delete":{"tags":["Users"],"summary":"Delete linked account","operationId":"MyLinkedAccounts_DeleteLinkedAccount","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"identityProvider","in":"path","description":"Identity provider type","required":true,"type":"string","enum":["Facebook","Microsoft","Google","Twitter","Beihai"]},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"403":{"description":"Forbidden. The request cannot be performed."},"404":{"description":"Not Found. The linked account is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}/topics":{"get":{"tags":["Users"],"summary":"Get user topics sorted by creation time","operationId":"UserTopics_GetTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}/topics/popular":{"get":{"tags":["Users"],"summary":"Get user topics sorted by popularity","operationId":"UserTopics_GetPopularTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}}},"definitions":{"PostBlobResponse":{"description":"Response from post (create) blob","required":["blobHandle"],"type":"object","properties":{"blobHandle":{"description":"Gets or sets blob handle","type":"string"}}},"Object":{"type":"object","properties":{}},"BuildsCurrentResponse":{"description":"Response from get builds current","type":"object","properties":{"dateAndTime":{"description":"Gets or sets the date and time of the current build","type":"string"},"commitHash":{"description":"Gets or sets the Git commit hash that represents the current checkout","type":"string"},"hostname":{"description":"Gets or sets the hostname that this code was built on","type":"string"},"serviceApiVersion":{"description":"Gets or sets service api version number","type":"string"},"dirtyFiles":{"description":"Gets or sets the list of files that were not committed at build time","type":"array","items":{"type":"string"}}}},"PostCommentRequest":{"description":"Request to post (create) comment","required":["text"],"type":"object","properties":{"text":{"description":"Gets or sets comment text","type":"string"},"blobType":{"description":"Gets or sets comment blob type","enum":["Unknown","Image","Video","Custom"],"type":"string"},"blobHandle":{"description":"Gets or sets comment blob handle","type":"string"},"language":{"description":"Gets or sets comment language","type":"string"}}},"PostCommentResponse":{"description":"Response from post (create) comment","required":["commentHandle"],"type":"object","properties":{"commentHandle":{"description":"Gets or sets comment handle of the comment","type":"string"}}},"FeedResponse[CommentView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/CommentView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"CommentView":{"description":"Comment view","required":["commentHandle","topicHandle","createdTime","user","text","totalLikes","totalReplies","liked"],"type":"object","properties":{"commentHandle":{"description":"Gets or sets comment handle","type":"string"},"topicHandle":{"description":"Gets or sets parent topic handle","type":"string"},"createdTime":{"format":"date-time","description":"Gets or sets created time","type":"string"},"user":{"$ref":"#/definitions/UserCompactView","description":"Gets or sets owner of the comment"},"text":{"description":"Gets or sets comment text","type":"string"},"blobType":{"description":"Gets or sets comment blob type","enum":["Unknown","Image","Video","Custom"],"type":"string"},"blobHandle":{"description":"Gets or sets comment blob handle","type":"string"},"blobUrl":{"description":"Gets or sets comment blob url","type":"string"},"language":{"description":"Gets or sets comment language","type":"string"},"totalLikes":{"format":"int64","description":"Gets or sets total likes for the comment","type":"integer"},"totalReplies":{"format":"int64","description":"Gets or sets total replies for the comment","type":"integer"},"liked":{"description":"Gets or sets a value indicating whether the querying user has liked the comment","type":"boolean"},"contentStatus":{"description":"Gets or sets content status","enum":["Active","Banned"],"type":"string"}}},"UserCompactView":{"description":"User compact view","required":["userHandle","firstName","lastName","visibility","followerStatus"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"},"firstName":{"description":"Gets or sets first name of the user","type":"string"},"lastName":{"description":"Gets or sets last name of the user","type":"string"},"photoHandle":{"description":"Gets or sets photo handle of the user","type":"string"},"photoUrl":{"description":"Gets or sets photo url of the user","type":"string"},"visibility":{"description":"Gets or sets visibility of the user","enum":["Public","Private"],"type":"string"},"followerStatus":{"description":"Gets or sets follower relationship status of the querying user","enum":["None","Follow","Pending","Blocked"],"type":"string"}}},"PostImageResponse":{"description":"Response from post (create) image","required":["blobHandle"],"type":"object","properties":{"blobHandle":{"description":"Gets or sets blob handle","type":"string"}}},"FeedResponse[UserCompactView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/UserCompactView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"PutNotificationsStatusRequest":{"description":"Request to put (update) notifications status","type":"object","properties":{"readActivityHandle":{"description":"Gets or sets last read activity handle","type":"string"}}},"FeedResponse[ActivityView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/ActivityView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"ActivityView":{"description":"Activity view","required":["activityHandle","createdTime","activityType","actorUsers","totalActions","unread"],"type":"object","properties":{"activityHandle":{"description":"Gets or sets activity handle","type":"string"},"createdTime":{"format":"date-time","description":"Gets or sets created time","type":"string"},"activityType":{"description":"Gets or sets activity type","enum":["Like","Comment","Reply","CommentPeer","ReplyPeer","Following","FollowRequest","FollowAccept"],"type":"string"},"actorUsers":{"description":"Gets or sets actor users","type":"array","items":{"$ref":"#/definitions/UserCompactView"}},"actedOnUser":{"$ref":"#/definitions/UserCompactView","description":"Gets or sets acted on user"},"actedOnContent":{"$ref":"#/definitions/ContentCompactView","description":"Gets or sets acted on content"},"totalActions":{"format":"int32","description":"Gets or sets total actions","type":"integer"},"unread":{"description":"Gets or sets a value indicating whether the activity was read","type":"boolean"},"app":{"$ref":"#/definitions/AppCompactView","description":"Gets or sets the containing app"}}},"ContentCompactView":{"description":"Content compact view","required":["contentType","contentHandle","text"],"type":"object","properties":{"contentType":{"description":"Gets or sets content type","enum":["Unknown","Topic","Comment","Reply"],"type":"string"},"contentHandle":{"description":"Gets or sets content handle","type":"string"},"parentHandle":{"description":"Gets or sets parent handle","type":"string"},"rootHandle":{"description":"Gets or sets root handle","type":"string"},"text":{"description":"Gets or sets content text","type":"string"},"blobType":{"description":"Gets or sets content blob type","enum":["Unknown","Image","Video","Custom"],"type":"string"},"blobHandle":{"description":"Gets or sets content blob handle","type":"string"},"blobUrl":{"description":"Gets or sets content blob url","type":"string"}}},"AppCompactView":{"description":"App compact view","required":["appHandle","name","platformType"],"type":"object","properties":{"appHandle":{"description":"Gets or sets app handle","type":"string"},"name":{"description":"Gets or sets app name","type":"string"},"iconHandle":{"description":"Gets or sets app icon handle","type":"string"},"iconUrl":{"description":"Gets or sets app icon url","type":"string"},"platformType":{"description":"Gets or sets platform type","enum":["Windows","Android","IOS"],"type":"string"},"deepLink":{"description":"Gets or sets app deep link","type":"string"},"storeLink":{"description":"Gets or sets app store link","type":"string"}}},"CountResponse":{"description":"Count response","required":["count"],"type":"object","properties":{"count":{"format":"int64","description":"Gets or sets count","type":"integer"}}},"PostPinRequest":{"description":"Request to post (create) a pin","required":["topicHandle"],"type":"object","properties":{"topicHandle":{"description":"Gets or sets topic handle","type":"string"}}},"FeedResponse[TopicView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/TopicView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"TopicView":{"description":"Topic view","required":["topicHandle","createdTime","lastUpdatedTime","publisherType","user","text","totalLikes","totalComments","liked"],"type":"object","properties":{"topicHandle":{"description":"Gets or sets topic handle","type":"string"},"createdTime":{"format":"date-time","description":"Gets or sets created time","type":"string"},"lastUpdatedTime":{"format":"date-time","description":"Gets or sets last updated time","type":"string"},"publisherType":{"description":"Gets or sets publisher type","enum":["User","App"],"type":"string"},"user":{"$ref":"#/definitions/UserCompactView","description":"Gets or sets owner of the topic"},"title":{"description":"Gets or sets topic title","type":"string"},"text":{"description":"Gets or sets topic text","type":"string"},"blobType":{"description":"Gets or sets topic blob type","enum":["Unknown","Image","Video","Custom"],"type":"string"},"blobHandle":{"description":"Gets or sets topic blob handle","type":"string"},"blobUrl":{"description":"Gets or sets topic blob url","type":"string"},"categories":{"description":"Gets or sets topic categories","type":"string"},"language":{"description":"Gets or sets topic language","type":"string"},"group":{"description":"Gets or sets topic group","type":"string"},"deepLink":{"description":"Gets or sets topic deep link","type":"string"},"friendlyName":{"description":"Gets or sets topic friendly name","type":"string"},"totalLikes":{"format":"int64","description":"Gets or sets total likes for the topic","type":"integer"},"totalComments":{"format":"int64","description":"Gets or sets total comments for the topic","type":"integer"},"liked":{"description":"Gets or sets a value indicating whether the querying user has liked the topic","type":"boolean"},"pinned":{"description":"Gets or sets a value indicating whether the querying user has pinned the topic","type":"boolean"},"contentStatus":{"description":"Gets or sets content status","enum":["Active","Banned"],"type":"string"},"app":{"$ref":"#/definitions/AppCompactView","description":"Gets or sets the containing app"}}},"PutPushRegistrationRequest":{"description":"Request to put push registration (register or update)","required":["lastUpdatedTime","language"],"type":"object","properties":{"lastUpdatedTime":{"format":"date-time","description":"Gets or sets last updated time from the OS\r\n This is used to expire out registrations that have not been updated every 30 days.","type":"string"},"language":{"description":"Gets or sets language of the user","type":"string"}}},"PostReplyRequest":{"description":"Request to post (create) reply","required":["text"],"type":"object","properties":{"text":{"description":"Gets or sets reply text","type":"string"},"language":{"description":"Gets or sets reply language","type":"string"}}},"PostReplyResponse":{"description":"Response from post (create) reply","required":["replyHandle"],"type":"object","properties":{"replyHandle":{"description":"Gets or sets reply handle of the reply","type":"string"}}},"FeedResponse[ReplyView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/ReplyView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"ReplyView":{"description":"Reply view","required":["replyHandle","commentHandle","topicHandle","createdTime","user","text","totalLikes","liked"],"type":"object","properties":{"replyHandle":{"description":"Gets or sets reply handle","type":"string"},"commentHandle":{"description":"Gets or sets parent comment handle","type":"string"},"topicHandle":{"description":"Gets or sets root topic handle","type":"string"},"createdTime":{"format":"date-time","description":"Gets or sets created time","type":"string"},"user":{"$ref":"#/definitions/UserCompactView","description":"Gets or sets owner of the reply"},"text":{"description":"Gets or sets reply text","type":"string"},"language":{"description":"Gets or sets reply language","type":"string"},"totalLikes":{"format":"int64","description":"Gets or sets total likes for the reply","type":"integer"},"liked":{"description":"Gets or sets a value indicating whether the querying user has liked the reply","type":"boolean"},"contentStatus":{"description":"Gets or sets content status","enum":["Active","Banned"],"type":"string"}}},"PostReportRequest":{"description":"Request to post (create) a report for user or content","required":["reason"],"type":"object","properties":{"reason":{"description":"Gets or sets report reason","enum":["Spam","Cyberbullying","ChildEndangerment","Offensive","ContentInfringement","Other"],"type":"string"}}},"PostSessionRequest":{"description":"Request to post (create) session","required":["identityProvider","instanceId"],"type":"object","properties":{"identityProvider":{"description":"Gets or sets identity provider type","enum":["Facebook","Microsoft","Google","Twitter","Beihai"],"type":"string"},"accessToken":{"description":"Gets or sets access or authentication token, user code, or verifier obtained from third-party provider.\r\n The server contacts the third-party provider to use the token (or user code, or verifier) for discover the user's identity.","type":"string"},"requestToken":{"description":"Gets or sets request token obtained from third-party provider.\r\n Some providers do not issue authentication or access tokens, but they issue request tokens\r\n and verifiers.","type":"string"},"instanceId":{"description":"Gets or sets instance id -- Unique installation id of the app","type":"string"},"createUser":{"description":"Gets or sets a value indicating whether we should create a new user if the user doesn't exist","type":"boolean"}}},"PostSessionResponse":{"description":"Response from post (create) session","required":["userHandle","sessionToken"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"},"sessionToken":{"description":"Gets or sets session token generated by our server.\r\n The client saves the session token and sends it with every request","type":"string"}}},"GetRequestTokenResponse":{"description":"Response from get request token response","required":["requestToken"],"type":"object","properties":{"requestToken":{"description":"Gets or sets request token from identity provider","type":"string"}}},"PostFollowingRequest":{"description":"Request to post a following (follow user)","required":["userHandle"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"}}},"PostFollowerRequest":{"description":"Request to post (accept) a follower","required":["userHandle"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"}}},"PostBlockedUserRequest":{"description":"Request to post a blocked user (block user)","required":["userHandle"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"}}},"PostTopicRequest":{"description":"Request to post (create) topic","required":["publisherType","text"],"type":"object","properties":{"publisherType":{"description":"Gets or sets publisher type","enum":["User","App"],"type":"string"},"title":{"description":"Gets or sets topic title","type":"string"},"text":{"description":"Gets or sets topic text","type":"string"},"blobType":{"description":"Gets or sets topic blob type","enum":["Unknown","Image","Video","Custom"],"type":"string"},"blobHandle":{"description":"Gets or sets topic blob handle","type":"string"},"categories":{"description":"Gets or sets topic categories","type":"string"},"language":{"description":"Gets or sets topic language","type":"string"},"deepLink":{"description":"Gets or sets topic deep link","type":"string"},"friendlyName":{"description":"Gets or sets topic friendly name","type":"string"},"group":{"description":"Gets or sets topic group","type":"string"}}},"PostTopicResponse":{"description":"Response from post (create) topic","required":["topicHandle"],"type":"object","properties":{"topicHandle":{"description":"Gets or sets topic handle of the topic","type":"string"}}},"PutTopicRequest":{"description":"Request to put (update) topic","required":["text"],"type":"object","properties":{"title":{"description":"Gets or sets topic title","type":"string"},"text":{"description":"Gets or sets topic text","type":"string"},"categories":{"description":"Gets or sets topic categories","type":"string"}}},"PostUserRequest":{"description":"Request to post (create) user","required":["identityProvider","instanceId","firstName","lastName"],"type":"object","properties":{"identityProvider":{"description":"Gets or sets identity provider type","enum":["Facebook","Microsoft","Google","Twitter","Beihai"],"type":"string"},"accessToken":{"description":"Gets or sets access or authentication token obtained from third-party provider.\r\n The server contacts the third-party provider to validate the token","type":"string"},"requestToken":{"description":"Gets or sets request token obtained from third-party provider.\r\n Some providers do not issue authentication or access tokens, but they issue request tokens\r\n and verifiers.","type":"string"},"instanceId":{"description":"Gets or sets instance id -- Unique installation id of the app","type":"string"},"firstName":{"description":"Gets or sets first name of the user","type":"string"},"lastName":{"description":"Gets or sets last name of the user","type":"string"},"bio":{"description":"Gets or sets short bio of the user","type":"string"},"photoHandle":{"description":"Gets or sets photo handle of the user","type":"string"}}},"PostUserResponse":{"description":"Response from post (create) user","required":["userHandle","sessionToken"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"},"sessionToken":{"description":"Gets or sets the session token generated by our server.\r\n The client saves the session token and sends it with every request","type":"string"}}},"UserProfileView":{"description":"User profile view","required":["userHandle","appHandle","firstName","lastName","bio","photoHandle","photoUrl","visibility","totalTopics","totalFollowers","totalFollowing","followerStatus","followingStatus","profileStatus"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"},"appHandle":{"description":"Gets or sets app handle","type":"string"},"firstName":{"description":"Gets or sets first name of the user","type":"string"},"lastName":{"description":"Gets or sets last name of the user","type":"string"},"bio":{"description":"Gets or sets short bio of the user","type":"string"},"photoHandle":{"description":"Gets or sets photo handle of the user","type":"string"},"photoUrl":{"description":"Gets or sets photo url of the user","type":"string"},"visibility":{"description":"Gets or sets visibility of the user","enum":["Public","Private"],"type":"string"},"totalTopics":{"format":"int64","description":"Gets or sets total topics posted by user","type":"integer"},"totalFollowers":{"format":"int64","description":"Gets or sets total followers for the user","type":"integer"},"totalFollowing":{"format":"int64","description":"Gets or sets total following users","type":"integer"},"followerStatus":{"description":"Gets or sets follower relationship status of the querying user","enum":["None","Follow","Pending","Blocked"],"type":"string"},"followingStatus":{"description":"Gets or sets following relationship status of the querying user","enum":["None","Follow","Pending","Blocked"],"type":"string"},"profileStatus":{"description":"Gets or sets user profile status","enum":["Active","Banned"],"type":"string"}}},"PutUserInfoRequest":{"description":"Request to put (update) user info","required":["firstName","lastName"],"type":"object","properties":{"firstName":{"description":"Gets or sets first name of the user","type":"string"},"lastName":{"description":"Gets or sets last name of the user","type":"string"},"bio":{"description":"Gets or sets short bio of the user","type":"string"}}},"PutUserPhotoRequest":{"description":"Request to put (update) user photo","type":"object","properties":{"photoHandle":{"description":"Gets or sets photo handle of the user","type":"string"}}},"PutUserVisibilityRequest":{"description":"Request to put (update) user visibility","required":["visibility"],"type":"object","properties":{"visibility":{"description":"Gets or sets visibility of the user","enum":["Public","Private"],"type":"string"}}},"FeedResponse[UserProfileView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/UserProfileView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"PostLinkedAccountRequest":{"description":"Request to post (create) linked account","required":["identityProvider"],"type":"object","properties":{"identityProvider":{"description":"Gets or sets identity provider type","enum":["Facebook","Microsoft","Google","Twitter","Beihai"],"type":"string"},"accessToken":{"description":"Gets or sets access or authentication token, user code, or verifier obtained from third-party provider.\r\n The server contacts the third-party provider to use the token (or user code, or verifier) for discover the user's identity.","type":"string"},"requestToken":{"description":"Gets or sets request token obtained from third-party provider.\r\n Some providers do not issue authentication or access tokens, but they issue request tokens\r\n and verifiers.","type":"string"}}},"LinkedAccountView":{"description":"Linked account view","required":["identityProvider","accountId"],"type":"object","properties":{"identityProvider":{"description":"Gets or sets identity provider type","enum":["Facebook","Microsoft","Google","Twitter","Beihai"],"type":"string"},"accountId":{"description":"Gets or sets third party account id -- Unique user id provided by the third-party identity provider","type":"string"}}}}} \ No newline at end of file diff --git a/swagger2.json b/swagger-postprocessed.json similarity index 95% rename from swagger2.json rename to swagger-postprocessed.json index 85af2f0..a351e50 100644 --- a/swagger2.json +++ b/swagger-postprocessed.json @@ -14,7 +14,7 @@ "url": "http://research.microsoft.com" }, "x-ms-code-generation-settings": { - "header": "Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information." + "header": "Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. This file was generated using AutoRest." } }, "host": "localhost:1324", @@ -531,7 +531,9 @@ "description": "Images will be resized. To access a resized image, append the 1 character size identifier to the blobHandle that is returned.\r\nd = 25 pixels wide\r\nh = 50 pixels wide\r\nl = 100 pixels wide\r\np = 250 pixels wide\r\nt = 500 pixels wide\r\nx = 1000 pixels wide\r\nImageType.UserPhoto supports d,h,l,p,t,x\r\nImageType.ContentBlob supports d,h,l,p,t,x\r\nImageType.AppIcon supports l\r\nAll resized images will maintain their aspect ratio. Any orientation specified in the EXIF headers will be honored.", "operationId": "Images_PostImage", "consumes": [ - "image" + "image/gif", + "image/jpeg", + "image/png" ], "produces": [ "application/json", @@ -602,7 +604,9 @@ "operationId": "Images_GetImage", "consumes": [], "produces": [ - "image" + "image/gif", + "image/jpeg", + "image/png" ], "parameters": [ { @@ -2479,7 +2483,8 @@ "Facebook", "Microsoft", "Google", - "Twitter" + "Twitter", + "Beihai" ], "x-ms-enum": { "name": "identityProvider" @@ -4189,7 +4194,7 @@ "tags": [ "Users" ], - "summary": "Create a new user", + "summary": "Create a new user using the following flow:\r\n 1. Validate and parse the identity provider access token to construct an identity provider user\r\n 2. If identity provider user present in linked account table, read user profile for this specific application from user profile table\r\n 3. If user profile exists, return user conflict\r\n 4. Otherwise, it means that the user does not have a profile for this particular application. Create one.\r\n 5. Otherwise, the identity provider user is not present. Create the user, and its user profile.\r\n 6. Generate session token, and return\r\n The purpose of steps 2-4 is to ensure that if the user has already registered with us using the same identity provider\r\n but for a different SocialPlus application, we reuse his user-handle and just resume to create a new profile for this specific \r\n SocialPlus application. The end result is that we know it is the same user in both apps.", "operationId": "Users_PostUser", "consumes": [ "application/json", @@ -4824,7 +4829,8 @@ "Facebook", "Microsoft", "Google", - "Twitter" + "Twitter", + "Beihai" ], "x-ms-enum": { "name": "identityProvider" @@ -5865,7 +5871,8 @@ "Facebook", "Microsoft", "Google", - "Twitter" + "Twitter", + "Beihai" ], "type": "string", "x-ms-enum": { @@ -6076,7 +6083,8 @@ "Facebook", "Microsoft", "Google", - "Twitter" + "Twitter", + "Beihai" ], "type": "string", "x-ms-enum": { @@ -6330,7 +6338,8 @@ "Facebook", "Microsoft", "Google", - "Twitter" + "Twitter", + "Beihai" ], "type": "string", "x-ms-enum": { @@ -6361,7 +6370,8 @@ "Facebook", "Microsoft", "Google", - "Twitter" + "Twitter", + "Beihai" ], "type": "string", "x-ms-enum": { diff --git a/swagger.json b/swagger.json deleted file mode 100644 index d244a1c..0000000 --- a/swagger.json +++ /dev/null @@ -1 +0,0 @@ -{"swagger":"2.0","info":{"version":"v0_2","title":"SocialPlus","description":"The SocialPlus interface to clients is a HTTP API which is documented here.","termsOfService":"ToS TBD","contact":{"name":"Social Plus Team","email":"socialplus@microsoft.com"},"license":{"name":"License TBD","url":"http://research.microsoft.com"}},"host":"localhost:1324","schemes":["http"],"paths":{"/v0.2/blobs":{"post":{"tags":["Blobs"],"summary":"Upload a blob","description":"If your blob is an image, use image APIs. For all other blob types, use this API.","operationId":"Blobs_PostBlob","consumes":["application/octet-stream"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"},{"name":"blob","in":"body","description":"MIME encoded contents of the blob","required":true,"schema":{"format":"file","type":"object"}}],"responses":{"201":{"description":"Created. The response contains the blob handle.","schema":{"$ref":"#/definitions/PostBlobResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/blobs/{blobHandle}":{"get":{"tags":["Blobs"],"summary":"Get blob","operationId":"Blobs_GetBlob","consumes":[],"produces":["application/octet-stream"],"parameters":[{"name":"blobHandle","in":"path","description":"Blob handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"description":"MIME encoded contents of the blob","type":"file"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The blob is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/builds/current":{"get":{"tags":["Builds"],"summary":"The build information for this service","description":"This API is meant to be called by humans for debugging","operationId":"Builds_GetBuildsCurrent","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/BuildsCurrentResponse"}}},"deprecated":false}},"/v0.2/topics/{topicHandle}/comments":{"get":{"tags":["Comments"],"summary":"Get comments for a topic","operationId":"TopicComments_GetTopicComments","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[CommentView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Comments"],"summary":"Create a new comment","operationId":"TopicComments_PostComment","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"request","in":"body","description":"Post comment request","required":true,"schema":{"$ref":"#/definitions/PostCommentRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"201":{"description":"Created. The response contains the comment handle.","schema":{"$ref":"#/definitions/PostCommentResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/comments/{commentHandle}":{"get":{"tags":["Comments"],"summary":"Get comment","operationId":"Comments_GetComment","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/CommentView"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"delete":{"tags":["Comments"],"summary":"Delete comment","operationId":"Comments_DeleteComment","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/hashtags/trending":{"get":{"tags":["Hashtags"],"summary":"Get trending hashtags","operationId":"Hashtags_GetTrendingHashtags","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"type":"array","items":{"type":"string"}}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/hashtags/autocomplete":{"get":{"tags":["Hashtags"],"summary":"Get autocompleted hashtags","operationId":"Hashtags_GetAutocompletedHashtags","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"query","in":"query","description":"Search query","required":true,"type":"string"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"type":"array","items":{"type":"string"}}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/images/{imageType}":{"post":{"tags":["Images"],"summary":"Upload a new image","description":"Images will be resized. To access a resized image, append the 1 character size identifier to the blobHandle that is returned.\r\nd = 25 pixels wide\r\nh = 50 pixels wide\r\nl = 100 pixels wide\r\np = 250 pixels wide\r\nt = 500 pixels wide\r\nx = 1000 pixels wide\r\nImageType.UserPhoto supports d,h,l,p,t,x\r\nImageType.ContentBlob supports d,h,l,p,t,x\r\nImageType.AppIcon supports l\r\nAll resized images will maintain their aspect ratio. Any orientation specified in the EXIF headers will be honored.","operationId":"Images_PostImage","consumes":["image"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"imageType","in":"path","description":"Image type","required":true,"type":"string","enum":["UserPhoto","ContentBlob","AppIcon"]},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"},{"name":"image","in":"body","description":"MIME encoded contents of the image","required":true,"schema":{"format":"file","type":"object"}}],"responses":{"201":{"description":"Created. The response contains the image handle.","schema":{"$ref":"#/definitions/PostImageResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/images/{blobHandle}":{"get":{"tags":["Images"],"summary":"Get image","operationId":"Images_GetImage","consumes":[],"produces":["image"],"parameters":[{"name":"blobHandle","in":"path","description":"Blob handle","required":true,"type":"string"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"description":"MIME encoded contents of the image","type":"file"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The image is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/comments/{commentHandle}/likes":{"get":{"tags":["Likes"],"summary":"Get likes for comment","operationId":"CommentLikes_GetLikes","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Likes"],"summary":"Add like to comment","operationId":"CommentLikes_PostLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/comments/{commentHandle}/likes/me":{"delete":{"tags":["Likes"],"summary":"Remove like from comment","operationId":"CommentLikes_DeleteLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/replies/{replyHandle}/likes":{"get":{"tags":["Likes"],"summary":"Get likes for reply","operationId":"ReplyLikes_GetLikes","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Likes"],"summary":"Add like to reply","operationId":"ReplyLikes_PostLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/replies/{replyHandle}/likes/me":{"delete":{"tags":["Likes"],"summary":"Remove like from reply","operationId":"ReplyLikes_DeleteLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics/{topicHandle}/likes":{"get":{"tags":["Likes"],"summary":"Get likes for topic","operationId":"TopicLikes_GetLikes","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Likes"],"summary":"Add like to topic","operationId":"TopicLikes_PostLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics/{topicHandle}/likes/me":{"delete":{"tags":["Likes"],"summary":"Remove like from topic","operationId":"TopicLikes_DeleteLike","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/notifications/status":{"put":{"tags":["Notifications"],"summary":"Update notifications status","operationId":"MyNotifications_PutNotificationsStatus","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Put notifications status request","required":true,"schema":{"$ref":"#/definitions/PutNotificationsStatusRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/notifications":{"get":{"tags":["Notifications"],"summary":"Get notifications","operationId":"MyNotifications_GetNotifications","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[ActivityView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/notifications/count":{"get":{"tags":["Notifications"],"summary":"Get unread notifications count","operationId":"MyNotifications_GetNotificationsCount","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/CountResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/pins":{"get":{"tags":["Pins"],"summary":"Get my pins","operationId":"MyPins_GetPins","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Pins"],"summary":"Pin a topic","operationId":"MyPins_PostPin","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post pin request","required":true,"schema":{"$ref":"#/definitions/PostPinRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/pins/{topicHandle}":{"delete":{"tags":["Pins"],"summary":"Unpin a topic","operationId":"MyPins_DeletePin","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/push_registrations/{platform}/{registrationId}":{"put":{"tags":["Push Notifications"],"summary":"Register for push notifications or update existing registration","operationId":"MyPushRegistrations_PutPushRegistration","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"platform","in":"path","description":"Platform type","required":true,"type":"string","enum":["Windows","Android","IOS"]},{"name":"registrationId","in":"path","description":"Unique registration id provided by the mobile OS.\r\n For Android, this is the GCM registration ID.\r\n For Windows, this is the PushNotificationChannel URI.\r\n For iOS, this is the device token.","required":true,"type":"string"},{"name":"request","in":"body","description":"Put push registration request","required":true,"schema":{"$ref":"#/definitions/PutPushRegistrationRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"401":{"description":"Unauthorized. The user or the app is not authorized."},"409":{"description":"Conflict. LastUpdatedTime is in the future."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"delete":{"tags":["Push Notifications"],"summary":"Unregister from push notifications","operationId":"MyPushRegistrations_DeletePushRegistration","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"platform","in":"path","description":"Platform type","required":true,"type":"string","enum":["Windows","Android","IOS"]},{"name":"registrationId","in":"path","description":"Unique registration id provided by the mobile OS.\r\n For Android, this is the GCM registration ID.\r\n For Windows, this is the PushNotificationChannel URI.\r\n For iOS, this is the device token.","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The push registrationId was not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/comments/{commentHandle}/replies":{"get":{"tags":["Replies"],"summary":"Get replies for a comment","operationId":"CommentReplies_GetReplies","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[ReplyView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Replies"],"summary":"Create a new reply","operationId":"CommentReplies_PostReply","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"request","in":"body","description":"Post reply request","required":true,"schema":{"$ref":"#/definitions/PostReplyRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"201":{"description":"Created. The response contains the reply handle.","schema":{"$ref":"#/definitions/PostReplyResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/replies/{replyHandle}":{"get":{"tags":["Replies"],"summary":"Get reply","operationId":"Replies_GetReply","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/ReplyView"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"delete":{"tags":["Replies"],"summary":"Delete reply","operationId":"Replies_DeleteReply","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}/reports":{"post":{"tags":["Reporting"],"summary":"Report user","operationId":"UserReports_PostReport","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"postReportRequest","in":"body","description":"Post report request","required":true,"schema":{"$ref":"#/definitions/PostReportRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/replies/{replyHandle}/reports":{"post":{"tags":["Reporting"],"summary":"Report reply","operationId":"ReplyReports_PostReport","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"replyHandle","in":"path","description":"Reply handle","required":true,"type":"string"},{"name":"postReportRequest","in":"body","description":"Post report request","required":true,"schema":{"$ref":"#/definitions/PostReportRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The reply is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/comments/{commentHandle}/reports":{"post":{"tags":["Reporting"],"summary":"Report comment","operationId":"CommentReports_PostReport","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"commentHandle","in":"path","description":"Comment handle","required":true,"type":"string"},{"name":"postReportRequest","in":"body","description":"Post report request","required":true,"schema":{"$ref":"#/definitions/PostReportRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The comment is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics/{topicHandle}/reports":{"post":{"tags":["Reporting"],"summary":"Report topic","operationId":"TopicReports_PostReport","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"postReportRequest","in":"body","description":"Post report request","required":true,"schema":{"$ref":"#/definitions/PostReportRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/search/topics":{"get":{"tags":["Search"],"summary":"Search topics with a query","operationId":"Search_GetTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"query","in":"query","description":"Search query","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/search/users":{"get":{"tags":["Search"],"summary":"Search users with a query","operationId":"Search_GetUsers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"query","in":"query","description":"Search query","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app or user is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/sessions":{"post":{"tags":["Sessions"],"summary":"Create a new session (sign in)","operationId":"Sessions_PostSession","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post session request","required":true,"schema":{"$ref":"#/definitions/PostSessionRequest"}},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"201":{"description":"Created. The response contains user handle and session token.","schema":{"$ref":"#/definitions/PostSessionResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found. The app needs to call create user to create a new user."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/sessions/current":{"delete":{"tags":["Sessions"],"summary":"Delete the current session (sign out)","operationId":"Sessions_DeleteSession","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/request_tokens/{identityProvider}":{"get":{"tags":["Sessions"],"summary":"Get request token","operationId":"RequestTokens_GetRequestToken","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"identityProvider","in":"path","description":"Identity provider type","required":true,"type":"string","enum":["Facebook","Microsoft","Google","Twitter"]},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/GetRequestTokenResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/following":{"get":{"tags":["Social"],"summary":"Get my following","operationId":"MyFollowing_GetFollowing","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Social"],"summary":"Follow user","operationId":"MyFollowing_PostFollowing","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post following request","required":true,"schema":{"$ref":"#/definitions/PostFollowingRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/following/{userHandle}":{"delete":{"tags":["Social"],"summary":"Unfollow user","operationId":"MyFollowing_DeleteFollowing","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/following/topics/{topicHandle}":{"delete":{"tags":["Social"],"summary":"Hide topic from my following topics","operationId":"MyFollowing_DeleteTopic","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/following/topics":{"get":{"tags":["Social"],"summary":"Get my following topic feed","operationId":"MyFollowing_GetTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/following/activities":{"get":{"tags":["Social"],"summary":"Get my following activity feed","operationId":"MyFollowing_GetActivities","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[ActivityView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}/followers":{"get":{"tags":["Social"],"summary":"Get followers of a user","operationId":"UserFollowers_GetFollowers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/followers":{"get":{"tags":["Social"],"summary":"Get my followers","operationId":"MyFollowers_GetFollowers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Social"],"summary":"Accept follower request","operationId":"MyFollowers_PostFollower","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post follower request","required":true,"schema":{"$ref":"#/definitions/PostFollowerRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"403":{"description":"Forbidden. The request cannot be performed."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/followers/{userHandle}":{"delete":{"tags":["Social"],"summary":"Remove follower","operationId":"MyFollowers_DeleteFollower","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}/following":{"get":{"tags":["Social"],"summary":"Get following users of a user","operationId":"UserFollowing_GetFollowing","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/pending_users/{userHandle}":{"delete":{"tags":["Social"],"summary":"Reject follower request","operationId":"MyPendingUsers_DeletePendingUser","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/pending_users":{"get":{"tags":["Social"],"summary":"Get my pending users","operationId":"MyPendingUsers_GetPendingUsers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/pending_users/count":{"get":{"tags":["Social"],"summary":"Get my pending users count","operationId":"MyPendingUsers_GetPendingUsersCount","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/CountResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/blocked_users":{"get":{"tags":["Social"],"summary":"Get my blocked users","operationId":"MyBlockedUsers_GetBlockedUsers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Social"],"summary":"Block user","operationId":"MyBlockedUsers_PostBlockedUser","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post blocked user request","required":true,"schema":{"$ref":"#/definitions/PostBlockedUserRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/blocked_users/{userHandle}":{"delete":{"tags":["Social"],"summary":"Unblock user","operationId":"MyBlockedUsers_DeleteBlockedUser","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics":{"get":{"tags":["Topics"],"summary":"Get recent topics","operationId":"Topics_GetTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Topics"],"summary":"Create a new topic","operationId":"Topics_PostTopic","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post topic request","required":true,"schema":{"$ref":"#/definitions/PostTopicRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"201":{"description":"Created. The response contains the topic handle.","schema":{"$ref":"#/definitions/PostTopicResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."},"501":{"description":"Not implemented. The server is yet to implement this feature."}},"deprecated":false}},"/v0.2/topics/{topicHandle}":{"get":{"tags":["Topics"],"summary":"Get topic","operationId":"Topics_GetTopic","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/TopicView"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"put":{"tags":["Topics"],"summary":"Update topic","operationId":"Topics_PutTopic","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"request","in":"body","description":"Put topic request","required":true,"schema":{"$ref":"#/definitions/PutTopicRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"409":{"description":"Conflict. Newer item exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"delete":{"tags":["Topics"],"summary":"Delete topic","operationId":"Topics_DeleteTopic","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"topicHandle","in":"path","description":"Topic handle","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The topic is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics/popular/{timeRange}":{"get":{"tags":["Topics"],"summary":"Get popular topics today","operationId":"Topics_GetPopularTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"timeRange","in":"path","description":"Time range","required":true,"type":"string","enum":["Today","ThisWeek","ThisMonth","AllTime"]},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/topics/featured":{"get":{"tags":["Topics"],"summary":"Get featured topics","operationId":"Topics_GetFeaturedTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/apps/{appHandle}/following/difference":{"get":{"tags":["Users"],"summary":"Find users the current user is following in another app but not in the current app","operationId":"MyAppFollowing_GetUsers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"appHandle","in":"path","description":"App handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserCompactView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/topics":{"get":{"tags":["Users"],"summary":"Get my topics sorted by creation time","operationId":"MyTopics_GetTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/topics/popular":{"get":{"tags":["Users"],"summary":"Get my topics sorted by popularity","operationId":"MyTopics_GetPopularTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/apps":{"get":{"tags":["Users"],"summary":"Get my list of Social Plus apps","operationId":"MyApps_GetApps","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"type":"array","items":{"$ref":"#/definitions/AppCompactView"}}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users":{"post":{"tags":["Users"],"summary":"Create a new user","operationId":"Users_PostUser","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post user request","required":true,"schema":{"$ref":"#/definitions/PostUserRequest"}},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"201":{"description":"Created. The response contains user handle and session token.","schema":{"$ref":"#/definitions/PostUserResponse"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"409":{"description":"Conflict. Item already exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me":{"get":{"tags":["Users"],"summary":"Get my profile","operationId":"Users_GetMyProfile","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/UserProfileView"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"delete":{"tags":["Users"],"summary":"Delete user","operationId":"Users_DeleteUser","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/info":{"put":{"tags":["Users"],"summary":"Update user info","operationId":"Users_PutUserInfo","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Put user info request","required":true,"schema":{"$ref":"#/definitions/PutUserInfoRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/photo":{"put":{"tags":["Users"],"summary":"Update user photo","operationId":"Users_PutUserPhoto","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Put user photo request","required":true,"schema":{"$ref":"#/definitions/PutUserPhotoRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/visibility":{"put":{"tags":["Users"],"summary":"Update user visibility","operationId":"Users_PutUserVisibility","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Put user visibility request","required":true,"schema":{"$ref":"#/definitions/PutUserVisibilityRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}":{"get":{"tags":["Users"],"summary":"Get user profile","operationId":"Users_GetUser","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/UserProfileView"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/popular":{"get":{"tags":["Users"],"summary":"Get popular users","operationId":"Users_GetPopularUsers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[UserProfileView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/likes/topics":{"get":{"tags":["Users"],"summary":"Get my liked topics","operationId":"MyLikes_GetLikedTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/linked_accounts":{"get":{"tags":["Users"],"summary":"Get linked accounts","operationId":"MyLinkedAccounts_GetLinkedAccounts","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"type":"array","items":{"$ref":"#/definitions/LinkedAccountView"}}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false},"post":{"tags":["Users"],"summary":"Create a new linked account","operationId":"MyLinkedAccounts_PostLinkedAccount","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","description":"Post linked account request","required":true,"schema":{"$ref":"#/definitions/PostLinkedAccountRequest"}},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"409":{"description":"Conflict. Item already exists."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/me/linked_accounts/{identityProvider}":{"delete":{"tags":["Users"],"summary":"Delete linked account","operationId":"MyLinkedAccounts_DeleteLinkedAccount","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"identityProvider","in":"path","description":"Identity provider type","required":true,"type":"string","enum":["Facebook","Microsoft","Google","Twitter"]},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":true,"type":"string"}],"responses":{"204":{"description":"No Content. The request was successful.","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The user or the app is not authorized."},"403":{"description":"Forbidden. The request cannot be performed."},"404":{"description":"Not Found. The linked account is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}/topics":{"get":{"tags":["Users"],"summary":"Get user topics sorted by creation time","operationId":"UserTopics_GetTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"string"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}},"/v0.2/users/{userHandle}/topics/popular":{"get":{"tags":["Users"],"summary":"Get user topics sorted by popularity","operationId":"UserTopics_GetPopularTopics","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userHandle","in":"path","description":"User handle","required":true,"type":"string"},{"name":"cursor","in":"query","description":"Current read cursor","required":false,"type":"integer","format":"int32"},{"name":"limit","in":"query","description":"Number of items to return","required":false,"type":"integer","format":"int32"},{"name":"appkey","in":"header","description":"App Key Authentication","required":false,"type":"string"},{"name":"Authorization","in":"header","description":"Authenication (must begin with string \"Bearer \")","required":false,"type":"string"}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"$ref":"#/definitions/FeedResponse[TopicView]"}},"400":{"description":"Bad request. The request is invalid."},"401":{"description":"Unauthorized. The app is not authorized."},"404":{"description":"Not Found. The user is not found."},"500":{"description":"Internal Server Error. The server raised an exception."}},"deprecated":false}}},"definitions":{"PostBlobResponse":{"description":"Response from post (create) blob","required":["blobHandle"],"type":"object","properties":{"blobHandle":{"description":"Gets or sets blob handle","type":"string"}}},"Object":{"type":"object","properties":{}},"BuildsCurrentResponse":{"description":"Response from get builds current","type":"object","properties":{"dateAndTime":{"description":"Gets or sets the date and time of the current build","type":"string"},"commitHash":{"description":"Gets or sets the Git commit hash that represents the current checkout","type":"string"},"hostname":{"description":"Gets or sets the hostname that this code was built on","type":"string"},"serviceApiVersion":{"description":"Gets or sets service api version number","type":"string"},"dirtyFiles":{"description":"Gets or sets the list of files that were not committed at build time","type":"array","items":{"type":"string"}}}},"PostCommentRequest":{"description":"Request to post (create) comment","required":["text"],"type":"object","properties":{"text":{"description":"Gets or sets comment text","type":"string"},"blobType":{"description":"Gets or sets comment blob type","enum":["Unknown","Image","Video","Custom"],"type":"string"},"blobHandle":{"description":"Gets or sets comment blob handle","type":"string"},"language":{"description":"Gets or sets comment language","type":"string"}}},"PostCommentResponse":{"description":"Response from post (create) comment","required":["commentHandle"],"type":"object","properties":{"commentHandle":{"description":"Gets or sets comment handle of the comment","type":"string"}}},"FeedResponse[CommentView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/CommentView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"CommentView":{"description":"Comment view","required":["commentHandle","topicHandle","createdTime","user","text","totalLikes","totalReplies","liked"],"type":"object","properties":{"commentHandle":{"description":"Gets or sets comment handle","type":"string"},"topicHandle":{"description":"Gets or sets parent topic handle","type":"string"},"createdTime":{"format":"date-time","description":"Gets or sets created time","type":"string"},"user":{"$ref":"#/definitions/UserCompactView","description":"Gets or sets owner of the comment"},"text":{"description":"Gets or sets comment text","type":"string"},"blobType":{"description":"Gets or sets comment blob type","enum":["Unknown","Image","Video","Custom"],"type":"string"},"blobHandle":{"description":"Gets or sets comment blob handle","type":"string"},"blobUrl":{"description":"Gets or sets comment blob url","type":"string"},"language":{"description":"Gets or sets comment language","type":"string"},"totalLikes":{"format":"int64","description":"Gets or sets total likes for the comment","type":"integer"},"totalReplies":{"format":"int64","description":"Gets or sets total replies for the comment","type":"integer"},"liked":{"description":"Gets or sets a value indicating whether the querying user has liked the comment","type":"boolean"},"contentStatus":{"description":"Gets or sets content status","enum":["Active","Banned"],"type":"string"}}},"UserCompactView":{"description":"User compact view","required":["userHandle","firstName","lastName","visibility","followerStatus"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"},"firstName":{"description":"Gets or sets first name of the user","type":"string"},"lastName":{"description":"Gets or sets last name of the user","type":"string"},"photoHandle":{"description":"Gets or sets photo handle of the user","type":"string"},"photoUrl":{"description":"Gets or sets photo url of the user","type":"string"},"visibility":{"description":"Gets or sets visibility of the user","enum":["Public","Private"],"type":"string"},"followerStatus":{"description":"Gets or sets follower relationship status of the querying user","enum":["None","Follow","Pending","Blocked"],"type":"string"}}},"PostImageResponse":{"description":"Response from post (create) image","required":["blobHandle"],"type":"object","properties":{"blobHandle":{"description":"Gets or sets blob handle","type":"string"}}},"FeedResponse[UserCompactView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/UserCompactView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"PutNotificationsStatusRequest":{"description":"Request to put (update) notifications status","type":"object","properties":{"readActivityHandle":{"description":"Gets or sets last read activity handle","type":"string"}}},"FeedResponse[ActivityView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/ActivityView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"ActivityView":{"description":"Activity view","required":["activityHandle","createdTime","activityType","actorUsers","totalActions","unread"],"type":"object","properties":{"activityHandle":{"description":"Gets or sets activity handle","type":"string"},"createdTime":{"format":"date-time","description":"Gets or sets created time","type":"string"},"activityType":{"description":"Gets or sets activity type","enum":["Like","Comment","Reply","CommentPeer","ReplyPeer","Following","FollowRequest","FollowAccept"],"type":"string"},"actorUsers":{"description":"Gets or sets actor users","type":"array","items":{"$ref":"#/definitions/UserCompactView"}},"actedOnUser":{"$ref":"#/definitions/UserCompactView","description":"Gets or sets acted on user"},"actedOnContent":{"$ref":"#/definitions/ContentCompactView","description":"Gets or sets acted on content"},"totalActions":{"format":"int32","description":"Gets or sets total actions","type":"integer"},"unread":{"description":"Gets or sets a value indicating whether the activity was read","type":"boolean"},"app":{"$ref":"#/definitions/AppCompactView","description":"Gets or sets the containing app"}}},"ContentCompactView":{"description":"Content compact view","required":["contentType","contentHandle","text"],"type":"object","properties":{"contentType":{"description":"Gets or sets content type","enum":["Unknown","Topic","Comment","Reply"],"type":"string"},"contentHandle":{"description":"Gets or sets content handle","type":"string"},"parentHandle":{"description":"Gets or sets parent handle","type":"string"},"rootHandle":{"description":"Gets or sets root handle","type":"string"},"text":{"description":"Gets or sets content text","type":"string"},"blobType":{"description":"Gets or sets content blob type","enum":["Unknown","Image","Video","Custom"],"type":"string"},"blobHandle":{"description":"Gets or sets content blob handle","type":"string"},"blobUrl":{"description":"Gets or sets content blob url","type":"string"}}},"AppCompactView":{"description":"App compact view","required":["appHandle","name","platformType"],"type":"object","properties":{"appHandle":{"description":"Gets or sets app handle","type":"string"},"name":{"description":"Gets or sets app name","type":"string"},"iconHandle":{"description":"Gets or sets app icon handle","type":"string"},"iconUrl":{"description":"Gets or sets app icon url","type":"string"},"platformType":{"description":"Gets or sets platform type","enum":["Windows","Android","IOS"],"type":"string"},"deepLink":{"description":"Gets or sets app deep link","type":"string"},"storeLink":{"description":"Gets or sets app store link","type":"string"}}},"CountResponse":{"description":"Count response","required":["count"],"type":"object","properties":{"count":{"format":"int64","description":"Gets or sets count","type":"integer"}}},"PostPinRequest":{"description":"Request to post (create) a pin","required":["topicHandle"],"type":"object","properties":{"topicHandle":{"description":"Gets or sets topic handle","type":"string"}}},"FeedResponse[TopicView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/TopicView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"TopicView":{"description":"Topic view","required":["topicHandle","createdTime","lastUpdatedTime","publisherType","user","text","totalLikes","totalComments","liked"],"type":"object","properties":{"topicHandle":{"description":"Gets or sets topic handle","type":"string"},"createdTime":{"format":"date-time","description":"Gets or sets created time","type":"string"},"lastUpdatedTime":{"format":"date-time","description":"Gets or sets last updated time","type":"string"},"publisherType":{"description":"Gets or sets publisher type","enum":["User","App"],"type":"string"},"user":{"$ref":"#/definitions/UserCompactView","description":"Gets or sets owner of the topic"},"title":{"description":"Gets or sets topic title","type":"string"},"text":{"description":"Gets or sets topic text","type":"string"},"blobType":{"description":"Gets or sets topic blob type","enum":["Unknown","Image","Video","Custom"],"type":"string"},"blobHandle":{"description":"Gets or sets topic blob handle","type":"string"},"blobUrl":{"description":"Gets or sets topic blob url","type":"string"},"categories":{"description":"Gets or sets topic categories","type":"string"},"language":{"description":"Gets or sets topic language","type":"string"},"group":{"description":"Gets or sets topic group","type":"string"},"deepLink":{"description":"Gets or sets topic deep link","type":"string"},"friendlyName":{"description":"Gets or sets topic friendly name","type":"string"},"totalLikes":{"format":"int64","description":"Gets or sets total likes for the topic","type":"integer"},"totalComments":{"format":"int64","description":"Gets or sets total comments for the topic","type":"integer"},"liked":{"description":"Gets or sets a value indicating whether the querying user has liked the topic","type":"boolean"},"pinned":{"description":"Gets or sets a value indicating whether the querying user has pinned the topic","type":"boolean"},"contentStatus":{"description":"Gets or sets content status","enum":["Active","Banned"],"type":"string"},"app":{"$ref":"#/definitions/AppCompactView","description":"Gets or sets the containing app"}}},"PutPushRegistrationRequest":{"description":"Request to put push registration (register or update)","required":["lastUpdatedTime","language"],"type":"object","properties":{"lastUpdatedTime":{"format":"date-time","description":"Gets or sets last updated time from the OS\r\n This is used to expire out registrations that have not been updated every 30 days.","type":"string"},"language":{"description":"Gets or sets language of the user","type":"string"}}},"PostReplyRequest":{"description":"Request to post (create) reply","required":["text"],"type":"object","properties":{"text":{"description":"Gets or sets reply text","type":"string"},"language":{"description":"Gets or sets reply language","type":"string"}}},"PostReplyResponse":{"description":"Response from post (create) reply","required":["replyHandle"],"type":"object","properties":{"replyHandle":{"description":"Gets or sets reply handle of the reply","type":"string"}}},"FeedResponse[ReplyView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/ReplyView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"ReplyView":{"description":"Reply view","required":["replyHandle","commentHandle","topicHandle","createdTime","user","text","totalLikes","liked"],"type":"object","properties":{"replyHandle":{"description":"Gets or sets reply handle","type":"string"},"commentHandle":{"description":"Gets or sets parent comment handle","type":"string"},"topicHandle":{"description":"Gets or sets root topic handle","type":"string"},"createdTime":{"format":"date-time","description":"Gets or sets created time","type":"string"},"user":{"$ref":"#/definitions/UserCompactView","description":"Gets or sets owner of the reply"},"text":{"description":"Gets or sets reply text","type":"string"},"language":{"description":"Gets or sets reply language","type":"string"},"totalLikes":{"format":"int64","description":"Gets or sets total likes for the reply","type":"integer"},"liked":{"description":"Gets or sets a value indicating whether the querying user has liked the reply","type":"boolean"},"contentStatus":{"description":"Gets or sets content status","enum":["Active","Banned"],"type":"string"}}},"PostReportRequest":{"description":"Request to post (create) a report for user or content","required":["reason"],"type":"object","properties":{"reason":{"description":"Gets or sets report reason","enum":["Spam","Cyberbullying","ChildEndangerment","Offensive","ContentInfringement","Other"],"type":"string"}}},"PostSessionRequest":{"description":"Request to post (create) session","required":["identityProvider","instanceId"],"type":"object","properties":{"identityProvider":{"description":"Gets or sets identity provider type","enum":["Facebook","Microsoft","Google","Twitter"],"type":"string"},"accessToken":{"description":"Gets or sets access or authentication token, user code, or verifier obtained from third-party provider.\r\n The server contacts the third-party provider to use the token (or user code, or verifier) for discover the user's identity.","type":"string"},"requestToken":{"description":"Gets or sets request token obtained from third-party provider.\r\n Some providers do not issue authentication or access tokens, but they issue request tokens\r\n and verifiers.","type":"string"},"instanceId":{"description":"Gets or sets instance id -- Unique installation id of the app","type":"string"},"createUser":{"description":"Gets or sets a value indicating whether we should create a new user if the user doesn't exist","type":"boolean"}}},"PostSessionResponse":{"description":"Response from post (create) session","required":["userHandle","sessionToken"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"},"sessionToken":{"description":"Gets or sets session token generated by our server.\r\n The client saves the session token and sends it with every request","type":"string"}}},"GetRequestTokenResponse":{"description":"Response from get request token response","required":["requestToken"],"type":"object","properties":{"requestToken":{"description":"Gets or sets request token from identity provider","type":"string"}}},"PostFollowingRequest":{"description":"Request to post a following (follow user)","required":["userHandle"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"}}},"PostFollowerRequest":{"description":"Request to post (accept) a follower","required":["userHandle"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"}}},"PostBlockedUserRequest":{"description":"Request to post a blocked user (block user)","required":["userHandle"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"}}},"PostTopicRequest":{"description":"Request to post (create) topic","required":["publisherType","text"],"type":"object","properties":{"publisherType":{"description":"Gets or sets publisher type","enum":["User","App"],"type":"string"},"title":{"description":"Gets or sets topic title","type":"string"},"text":{"description":"Gets or sets topic text","type":"string"},"blobType":{"description":"Gets or sets topic blob type","enum":["Unknown","Image","Video","Custom"],"type":"string"},"blobHandle":{"description":"Gets or sets topic blob handle","type":"string"},"categories":{"description":"Gets or sets topic categories","type":"string"},"language":{"description":"Gets or sets topic language","type":"string"},"deepLink":{"description":"Gets or sets topic deep link","type":"string"},"friendlyName":{"description":"Gets or sets topic friendly name","type":"string"},"group":{"description":"Gets or sets topic group","type":"string"}}},"PostTopicResponse":{"description":"Response from post (create) topic","required":["topicHandle"],"type":"object","properties":{"topicHandle":{"description":"Gets or sets topic handle of the topic","type":"string"}}},"PutTopicRequest":{"description":"Request to put (update) topic","required":["text"],"type":"object","properties":{"title":{"description":"Gets or sets topic title","type":"string"},"text":{"description":"Gets or sets topic text","type":"string"},"categories":{"description":"Gets or sets topic categories","type":"string"}}},"PostUserRequest":{"description":"Request to post (create) user","required":["identityProvider","instanceId","firstName","lastName"],"type":"object","properties":{"identityProvider":{"description":"Gets or sets identity provider type","enum":["Facebook","Microsoft","Google","Twitter"],"type":"string"},"accessToken":{"description":"Gets or sets access or authentication token obtained from third-party provider.\r\n The server contacts the third-party provider to validate the token","type":"string"},"requestToken":{"description":"Gets or sets request token obtained from third-party provider.\r\n Some providers do not issue authentication or access tokens, but they issue request tokens\r\n and verifiers.","type":"string"},"instanceId":{"description":"Gets or sets instance id -- Unique installation id of the app","type":"string"},"firstName":{"description":"Gets or sets first name of the user","type":"string"},"lastName":{"description":"Gets or sets last name of the user","type":"string"},"bio":{"description":"Gets or sets short bio of the user","type":"string"},"photoHandle":{"description":"Gets or sets photo handle of the user","type":"string"}}},"PostUserResponse":{"description":"Response from post (create) user","required":["userHandle","sessionToken"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"},"sessionToken":{"description":"Gets or sets the session token generated by our server.\r\n The client saves the session token and sends it with every request","type":"string"}}},"UserProfileView":{"description":"User profile view","required":["userHandle","appHandle","firstName","lastName","bio","photoHandle","photoUrl","visibility","totalTopics","totalFollowers","totalFollowing","followerStatus","followingStatus","profileStatus"],"type":"object","properties":{"userHandle":{"description":"Gets or sets user handle","type":"string"},"appHandle":{"description":"Gets or sets app handle","type":"string"},"firstName":{"description":"Gets or sets first name of the user","type":"string"},"lastName":{"description":"Gets or sets last name of the user","type":"string"},"bio":{"description":"Gets or sets short bio of the user","type":"string"},"photoHandle":{"description":"Gets or sets photo handle of the user","type":"string"},"photoUrl":{"description":"Gets or sets photo url of the user","type":"string"},"visibility":{"description":"Gets or sets visibility of the user","enum":["Public","Private"],"type":"string"},"totalTopics":{"format":"int64","description":"Gets or sets total topics posted by user","type":"integer"},"totalFollowers":{"format":"int64","description":"Gets or sets total followers for the user","type":"integer"},"totalFollowing":{"format":"int64","description":"Gets or sets total following users","type":"integer"},"followerStatus":{"description":"Gets or sets follower relationship status of the querying user","enum":["None","Follow","Pending","Blocked"],"type":"string"},"followingStatus":{"description":"Gets or sets following relationship status of the querying user","enum":["None","Follow","Pending","Blocked"],"type":"string"},"profileStatus":{"description":"Gets or sets user profile status","enum":["Active","Banned"],"type":"string"}}},"PutUserInfoRequest":{"description":"Request to put (update) user info","required":["firstName","lastName"],"type":"object","properties":{"firstName":{"description":"Gets or sets first name of the user","type":"string"},"lastName":{"description":"Gets or sets last name of the user","type":"string"},"bio":{"description":"Gets or sets short bio of the user","type":"string"}}},"PutUserPhotoRequest":{"description":"Request to put (update) user photo","type":"object","properties":{"photoHandle":{"description":"Gets or sets photo handle of the user","type":"string"}}},"PutUserVisibilityRequest":{"description":"Request to put (update) user visibility","required":["visibility"],"type":"object","properties":{"visibility":{"description":"Gets or sets visibility of the user","enum":["Public","Private"],"type":"string"}}},"FeedResponse[UserProfileView]":{"description":"Feed response","required":["data","cursor"],"type":"object","properties":{"data":{"description":"Gets or sets feed data","type":"array","items":{"$ref":"#/definitions/UserProfileView"}},"cursor":{"description":"Gets or sets feed cursor","type":"string"}}},"PostLinkedAccountRequest":{"description":"Request to post (create) linked account","required":["identityProvider"],"type":"object","properties":{"identityProvider":{"description":"Gets or sets identity provider type","enum":["Facebook","Microsoft","Google","Twitter"],"type":"string"},"accessToken":{"description":"Gets or sets access or authentication token, user code, or verifier obtained from third-party provider.\r\n The server contacts the third-party provider to use the token (or user code, or verifier) for discover the user's identity.","type":"string"},"requestToken":{"description":"Gets or sets request token obtained from third-party provider.\r\n Some providers do not issue authentication or access tokens, but they issue request tokens\r\n and verifiers.","type":"string"}}},"LinkedAccountView":{"description":"Linked account view","required":["identityProvider","accountId"],"type":"object","properties":{"identityProvider":{"description":"Gets or sets identity provider type","enum":["Facebook","Microsoft","Google","Twitter"],"type":"string"},"accountId":{"description":"Gets or sets third party account id -- Unique user id provided by the third-party identity provider","type":"string"}}}}} \ No newline at end of file