updated to v0.7 API
This commit is contained in:
Родитель
acb1ad4721
Коммит
1ff4ac1432
|
@ -1,46 +1,46 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
|
||||
* the MIT License. See LICENSE in the project root for license information.
|
||||
* <autogenerated> This file was generated using AutoRest. </autogenerated>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the GetTopicNameResponse class.
|
||||
* @constructor
|
||||
* Response from get topic name
|
||||
* @member {string} topicHandle Gets or sets topic handle of the response
|
||||
*
|
||||
*/
|
||||
function GetTopicNameResponse() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of GetTopicNameResponse
|
||||
*
|
||||
* @returns {object} metadata of GetTopicNameResponse
|
||||
*
|
||||
*/
|
||||
GetTopicNameResponse.prototype.mapper = function () {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'GetTopicNameResponse',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'GetTopicNameResponse',
|
||||
modelProperties: {
|
||||
topicHandle: {
|
||||
required: true,
|
||||
serializedName: 'topicHandle',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = GetTopicNameResponse;
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
|
||||
* the MIT License. See LICENSE in the project root for license information.
|
||||
* <autogenerated> This file was generated using AutoRest. </autogenerated>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the GetTopicByNameResponse class.
|
||||
* @constructor
|
||||
* Response from get topic by name
|
||||
* @member {string} topicHandle Gets or sets topic handle of the response
|
||||
*
|
||||
*/
|
||||
function GetTopicByNameResponse() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of GetTopicByNameResponse
|
||||
*
|
||||
* @returns {object} metadata of GetTopicByNameResponse
|
||||
*
|
||||
*/
|
||||
GetTopicByNameResponse.prototype.mapper = function () {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'GetTopicByNameResponse',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'GetTopicByNameResponse',
|
||||
modelProperties: {
|
||||
topicHandle: {
|
||||
required: true,
|
||||
serializedName: 'topicHandle',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = GetTopicByNameResponse;
|
|
@ -555,7 +555,8 @@ export interface TopicView {
|
|||
* Initializes a new instance of the PutPushRegistrationRequest class.
|
||||
* @constructor
|
||||
* Request to put push registration (register or update)
|
||||
* @member {date} lastUpdatedTime Gets or sets last updated time from the OS
|
||||
* @member {string} lastUpdatedTime Gets or sets last updated time from the OS
|
||||
* in ISO 8601 format.
|
||||
* This is used to expire out registrations that have not been
|
||||
* updated every 30 days.
|
||||
*
|
||||
|
@ -563,7 +564,7 @@ export interface TopicView {
|
|||
*
|
||||
*/
|
||||
export interface PutPushRegistrationRequest {
|
||||
lastUpdatedTime: Date;
|
||||
lastUpdatedTime: string;
|
||||
language: string;
|
||||
}
|
||||
|
||||
|
@ -901,13 +902,13 @@ export interface DeleteTopicNameRequest {
|
|||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the GetTopicNameResponse class.
|
||||
* Initializes a new instance of the GetTopicByNameResponse class.
|
||||
* @constructor
|
||||
* Response from get topic name
|
||||
* Response from get topic by name
|
||||
* @member {string} topicHandle Gets or sets topic handle of the response
|
||||
*
|
||||
*/
|
||||
export interface GetTopicNameResponse {
|
||||
export interface GetTopicByNameResponse {
|
||||
topicHandle: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ exports.PutTopicRequest = require('./putTopicRequest');
|
|||
exports.PostTopicNameRequest = require('./postTopicNameRequest');
|
||||
exports.PutTopicNameRequest = require('./putTopicNameRequest');
|
||||
exports.DeleteTopicNameRequest = require('./deleteTopicNameRequest');
|
||||
exports.GetTopicNameResponse = require('./getTopicNameResponse');
|
||||
exports.GetTopicByNameResponse = require('./getTopicByNameResponse');
|
||||
exports.PostLinkedAccountRequest = require('./postLinkedAccountRequest');
|
||||
exports.LinkedAccountView = require('./linkedAccountView');
|
||||
exports.PostUserRequest = require('./postUserRequest');
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
* Initializes a new instance of the PutPushRegistrationRequest class.
|
||||
* @constructor
|
||||
* Request to put push registration (register or update)
|
||||
* @member {date} lastUpdatedTime Gets or sets last updated time from the OS
|
||||
* @member {string} lastUpdatedTime Gets or sets last updated time from the OS
|
||||
* in ISO 8601 format.
|
||||
* This is used to expire out registrations that have not been
|
||||
* updated every 30 days.
|
||||
*
|
||||
|
@ -39,7 +40,7 @@ PutPushRegistrationRequest.prototype.mapper = function () {
|
|||
required: true,
|
||||
serializedName: 'lastUpdatedTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
language: {
|
||||
|
|
|
@ -90,7 +90,7 @@ Blobs.prototype.postBlob = function (authorization, blob, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/blobs';
|
||||
'//v0.7/blobs';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -229,7 +229,7 @@ Blobs.prototype.getBlob = function (blobHandle, authorization, options, callback
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/blobs/{blobHandle}';
|
||||
'//v0.7/blobs/{blobHandle}';
|
||||
requestUrl = requestUrl.replace('{blobHandle}', encodeURIComponent(blobHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -59,7 +59,7 @@ Builds.prototype.getBuildsCurrent = function (options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/builds/current';
|
||||
'//v0.7/builds/current';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
|
|
@ -100,7 +100,7 @@ CommentLikes.prototype.getLikes = function (commentHandle, authorization, option
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/comments/{commentHandle}/likes';
|
||||
'//v0.7/comments/{commentHandle}/likes';
|
||||
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
@ -248,7 +248,7 @@ CommentLikes.prototype.postLike = function (commentHandle, authorization, option
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/comments/{commentHandle}/likes';
|
||||
'//v0.7/comments/{commentHandle}/likes';
|
||||
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -392,7 +392,7 @@ CommentLikes.prototype.deleteLike = function (commentHandle, authorization, opti
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/comments/{commentHandle}/likes/me';
|
||||
'//v0.7/comments/{commentHandle}/likes/me';
|
||||
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -99,7 +99,7 @@ CommentReplies.prototype.getReplies = function (commentHandle, authorization, op
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/comments/{commentHandle}/replies';
|
||||
'//v0.7/comments/{commentHandle}/replies';
|
||||
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
@ -257,7 +257,7 @@ CommentReplies.prototype.postReply = function (commentHandle, request, authoriza
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/comments/{commentHandle}/replies';
|
||||
'//v0.7/comments/{commentHandle}/replies';
|
||||
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -97,7 +97,7 @@ CommentReports.prototype.postReport = function (commentHandle, postReportRequest
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/comments/{commentHandle}/reports';
|
||||
'//v0.7/comments/{commentHandle}/reports';
|
||||
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -87,7 +87,7 @@ Comments.prototype.getComment = function (commentHandle, authorization, options,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/comments/{commentHandle}';
|
||||
'//v0.7/comments/{commentHandle}';
|
||||
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -225,7 +225,7 @@ Comments.prototype.deleteComment = function (commentHandle, authorization, optio
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/comments/{commentHandle}';
|
||||
'//v0.7/comments/{commentHandle}';
|
||||
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -81,7 +81,7 @@ Hashtags.prototype.getTrendingHashtags = function (authorization, options, callb
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/hashtags/trending';
|
||||
'//v0.7/hashtags/trending';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -234,7 +234,7 @@ Hashtags.prototype.getAutocompletedHashtags = function (query, authorization, op
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/hashtags/autocomplete';
|
||||
'//v0.7/hashtags/autocomplete';
|
||||
var queryParameters = [];
|
||||
queryParameters.push('query=' + encodeURIComponent(query));
|
||||
if (queryParameters.length > 0) {
|
||||
|
|
|
@ -115,7 +115,7 @@ Images.prototype.postImage = function (imageType, authorization, image, options,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/images/{imageType}';
|
||||
'//v0.7/images/{imageType}';
|
||||
requestUrl = requestUrl.replace('{imageType}', encodeURIComponent(imageType));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -255,7 +255,7 @@ Images.prototype.getImage = function (blobHandle, authorization, options, callba
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/images/{blobHandle}';
|
||||
'//v0.7/images/{blobHandle}';
|
||||
requestUrl = requestUrl.replace('{blobHandle}', encodeURIComponent(blobHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -1018,7 +1018,7 @@ export interface MyPins {
|
|||
/**
|
||||
* @summary Unpin a topic
|
||||
*
|
||||
* @param {string} topicHandle Topic handle
|
||||
* @param {string} topicHandle Handle of pinned topic
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -1065,6 +1065,15 @@ export interface MyPushRegistrations {
|
|||
* If multiple devices register for push notifications, then all
|
||||
* those devices
|
||||
* will get push notifications.
|
||||
* Each push notification will have three components: (1) a human
|
||||
* readable string
|
||||
* that the mobile OS should display to the user, (2) a
|
||||
* "publisher" string with
|
||||
* value "EmbeddedSocial" to identify that the push notification
|
||||
* came from
|
||||
* this service, and (3) an "activityHandle" that identifies which
|
||||
* activity
|
||||
* in the notification feed this push notification is for.
|
||||
*
|
||||
* @param {string} platform Platform type. Possible values include: 'Windows',
|
||||
* 'Android', 'IOS'
|
||||
|
@ -1072,14 +1081,14 @@ export interface MyPushRegistrations {
|
|||
* @param {string} registrationId Unique registration ID provided by the
|
||||
* mobile OS.
|
||||
* You must URL encode the registration ID.
|
||||
* For Android, this is the GCM registration ID.
|
||||
* For Android, this is the GCM or FCM registration ID.
|
||||
* For Windows, this is the PushNotificationChannel URI.
|
||||
* For iOS, this is the device token.
|
||||
*
|
||||
* @param {object} request Put push registration request
|
||||
*
|
||||
* @param {date} [request.lastUpdatedTime] Gets or sets last updated time from
|
||||
* the OS
|
||||
* @param {string} [request.lastUpdatedTime] Gets or sets last updated time
|
||||
* from the OS in ISO 8601 format.
|
||||
* This is used to expire out registrations that have not been
|
||||
* updated every 30 days.
|
||||
*
|
||||
|
@ -1768,7 +1777,7 @@ export interface UserFollowers {
|
|||
/**
|
||||
* @summary Get followers of a user
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of queried user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -1814,7 +1823,7 @@ export interface MyPendingUsers {
|
|||
/**
|
||||
* @summary Reject follower request
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of pending user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -1992,7 +2001,7 @@ export interface MyFollowers {
|
|||
/**
|
||||
* @summary Remove follower
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of follower user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -2206,7 +2215,7 @@ export interface MyFollowing {
|
|||
* Their past and future activities will no longer appear in my
|
||||
* following activities feed.
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of following user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -2244,7 +2253,7 @@ export interface MyFollowing {
|
|||
* The past and future activities on that topic will no longer
|
||||
* appear in my following activities feed.
|
||||
*
|
||||
* @param {string} topicHandle Topic handle
|
||||
* @param {string} topicHandle Handle of following topic
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -2282,7 +2291,7 @@ export interface MyFollowing {
|
|||
* that I am following. This call will remove the specified topic
|
||||
* from that feed.
|
||||
*
|
||||
* @param {string} topicHandle Topic handle
|
||||
* @param {string} topicHandle Handle of following topic
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -2423,6 +2432,57 @@ export interface MyFollowing {
|
|||
*/
|
||||
getActivities(authorization: string, options: { cursor? : string, limit? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.FeedResponseActivityView>): void;
|
||||
getActivities(authorization: string, callback: ServiceCallback<models.FeedResponseActivityView>): void;
|
||||
|
||||
/**
|
||||
* @summary Get my suggestions of users to follow.
|
||||
*
|
||||
* This call uses the token from the Authorization header to determine the
|
||||
* type of suggestions to provide.
|
||||
* In particular, the token determines which third-party to
|
||||
* contact to obtain a list of suggested users,
|
||||
* such as friends (for Facebook), following users (for Twitter),
|
||||
* and contacts (for Google and Microsoft).
|
||||
* We check each retrieved user to see whether they are registered
|
||||
* with Embedded Social (this is done by checking
|
||||
* whether the user appears as a linked account in any Embedded
|
||||
* Social profile).
|
||||
* Note that passing a token without the appropiate scopes will
|
||||
* prevent Embedded Social from obtaining a list
|
||||
* of suggested users.
|
||||
* Support for input parameters 'cursor' and 'limit' is not
|
||||
* implemented in the current API release.
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
*
|
||||
* - Anon AK=AppKey
|
||||
*
|
||||
* - SocialPlus TK=SessionToken
|
||||
*
|
||||
* - Facebook AK=AppKey|TK=AccessToken
|
||||
*
|
||||
* - Google AK=AppKey|TK=AccessToken
|
||||
*
|
||||
* - Twitter AK=AppKey|RT=RequestToken|TK=AccessToken
|
||||
*
|
||||
* - Microsoft AK=AppKey|TK=AccessToken
|
||||
*
|
||||
* - AADS2S AK=AppKey|[UH=UserHandle]|TK=AADToken
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {string} [options.cursor] Current read cursor
|
||||
*
|
||||
* @param {number} [options.limit] Number of users compact views to return
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @param {ServiceCallback} [callback] callback function; see ServiceCallback
|
||||
* doc in ms-rest index.d.ts for details
|
||||
*/
|
||||
getSuggestionsUsers(authorization: string, options: { cursor? : string, limit? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.UserCompactView[]>): void;
|
||||
getSuggestionsUsers(authorization: string, callback: ServiceCallback<models.UserCompactView[]>): void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2540,7 +2600,7 @@ export interface MyBlockedUsers {
|
|||
/**
|
||||
* @summary Unblock a user
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of blocked user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -2582,7 +2642,7 @@ export interface UserFollowing {
|
|||
/**
|
||||
* @summary Get following users of a user
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of queried user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -2823,7 +2883,7 @@ export interface Topics {
|
|||
deleteTopic(topicHandle: string, authorization: string, callback: ServiceCallback<any>): void;
|
||||
|
||||
/**
|
||||
* @summary Get popular topics today
|
||||
* @summary Get popular topics for a time range
|
||||
*
|
||||
* @param {string} timeRange Time range. Possible values include: 'Today',
|
||||
* 'ThisWeek', 'ThisMonth', 'AllTime'
|
||||
|
@ -2936,7 +2996,7 @@ export interface Topics {
|
|||
postTopicName(request: models.PostTopicNameRequest, authorization: string, callback: ServiceCallback<any>): void;
|
||||
|
||||
/**
|
||||
* @summary Get a topic name
|
||||
* @summary Get a topic by topic name
|
||||
*
|
||||
* @param {string} topicName Topic name
|
||||
*
|
||||
|
@ -2968,8 +3028,8 @@ export interface Topics {
|
|||
* @param {ServiceCallback} [callback] callback function; see ServiceCallback
|
||||
* doc in ms-rest index.d.ts for details
|
||||
*/
|
||||
getTopicName(topicName: string, publisherType: string, authorization: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.GetTopicNameResponse>): void;
|
||||
getTopicName(topicName: string, publisherType: string, authorization: string, callback: ServiceCallback<models.GetTopicNameResponse>): void;
|
||||
getTopicByName(topicName: string, publisherType: string, authorization: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.GetTopicByNameResponse>): void;
|
||||
getTopicByName(topicName: string, publisherType: string, authorization: string, callback: ServiceCallback<models.GetTopicByNameResponse>): void;
|
||||
|
||||
/**
|
||||
* @summary Update a topic name
|
||||
|
@ -3604,7 +3664,7 @@ export interface Users {
|
|||
/**
|
||||
* @summary Get user profile
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of queried user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -3681,7 +3741,7 @@ export interface UserTopics {
|
|||
/**
|
||||
* @summary Get user topics sorted by creation time
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of queried user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -3718,7 +3778,7 @@ export interface UserTopics {
|
|||
/**
|
||||
* @summary Get user topics sorted by popularity
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of queried user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
|
|
@ -95,7 +95,7 @@ MyAppFollowing.prototype.getUsers = function (appHandle, authorization, options,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/apps/{appHandle}/following/difference';
|
||||
'//v0.7/users/me/apps/{appHandle}/following/difference';
|
||||
requestUrl = requestUrl.replace('{appHandle}', encodeURIComponent(appHandle));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
|
|
@ -81,7 +81,7 @@ MyApps.prototype.getApps = function (authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/apps';
|
||||
'//v0.7/users/me/apps';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
|
|
@ -113,7 +113,7 @@ MyBlockedUsers.prototype.getBlockedUsers = function (authorization, options, cal
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/blocked_users';
|
||||
'//v0.7/users/me/blocked_users';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -278,7 +278,7 @@ MyBlockedUsers.prototype.postBlockedUser = function (request, authorization, opt
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/blocked_users';
|
||||
'//v0.7/users/me/blocked_users';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -376,7 +376,7 @@ MyBlockedUsers.prototype.postBlockedUser = function (request, authorization, opt
|
|||
/**
|
||||
* @summary Unblock a user
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of blocked user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -435,7 +435,7 @@ MyBlockedUsers.prototype.deleteBlockedUser = function (userHandle, authorization
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/blocked_users/{userHandle}';
|
||||
'//v0.7/users/me/blocked_users/{userHandle}';
|
||||
requestUrl = requestUrl.replace('{userHandle}', encodeURIComponent(userHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -95,7 +95,7 @@ MyFollowers.prototype.getFollowers = function (authorization, options, callback)
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/followers';
|
||||
'//v0.7/users/me/followers';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -244,7 +244,7 @@ MyFollowers.prototype.postFollower = function (request, authorization, options,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/followers';
|
||||
'//v0.7/users/me/followers';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -342,7 +342,7 @@ MyFollowers.prototype.postFollower = function (request, authorization, options,
|
|||
/**
|
||||
* @summary Remove follower
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of follower user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -401,7 +401,7 @@ MyFollowers.prototype.deleteFollower = function (userHandle, authorization, opti
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/followers/{userHandle}';
|
||||
'//v0.7/users/me/followers/{userHandle}';
|
||||
requestUrl = requestUrl.replace('{userHandle}', encodeURIComponent(userHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -99,7 +99,7 @@ MyFollowing.prototype.getFollowingUsers = function (authorization, options, call
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/following/users';
|
||||
'//v0.7/users/me/following/users';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -262,7 +262,7 @@ MyFollowing.prototype.postFollowingUser = function (request, authorization, opti
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/following/users';
|
||||
'//v0.7/users/me/following/users';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -427,7 +427,7 @@ MyFollowing.prototype.getFollowingTopics = function (authorization, options, cal
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/following/topics';
|
||||
'//v0.7/users/me/following/topics';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -582,7 +582,7 @@ MyFollowing.prototype.postFollowingTopic = function (request, authorization, opt
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/following/topics';
|
||||
'//v0.7/users/me/following/topics';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -688,7 +688,7 @@ MyFollowing.prototype.postFollowingTopic = function (request, authorization, opt
|
|||
* Their past and future activities will no longer appear in my
|
||||
* following activities feed.
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of following user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -747,7 +747,7 @@ MyFollowing.prototype.deleteFollowingUser = function (userHandle, authorization,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/following/users/{userHandle}';
|
||||
'//v0.7/users/me/following/users/{userHandle}';
|
||||
requestUrl = requestUrl.replace('{userHandle}', encodeURIComponent(userHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -837,7 +837,7 @@ MyFollowing.prototype.deleteFollowingUser = function (userHandle, authorization,
|
|||
* The past and future activities on that topic will no longer
|
||||
* appear in my following activities feed.
|
||||
*
|
||||
* @param {string} topicHandle Topic handle
|
||||
* @param {string} topicHandle Handle of following topic
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -896,7 +896,7 @@ MyFollowing.prototype.deleteFollowingTopic = function (topicHandle, authorizatio
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/following/topics/{topicHandle}';
|
||||
'//v0.7/users/me/following/topics/{topicHandle}';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -986,7 +986,7 @@ MyFollowing.prototype.deleteFollowingTopic = function (topicHandle, authorizatio
|
|||
* that I am following. This call will remove the specified topic
|
||||
* from that feed.
|
||||
*
|
||||
* @param {string} topicHandle Topic handle
|
||||
* @param {string} topicHandle Handle of following topic
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -1045,7 +1045,7 @@ MyFollowing.prototype.deleteTopicFromCombinedFollowingFeed = function (topicHand
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/following/combined/{topicHandle}';
|
||||
'//v0.7/users/me/following/combined/{topicHandle}';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -1214,7 +1214,7 @@ MyFollowing.prototype.getTopics = function (authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/following/combined';
|
||||
'//v0.7/users/me/following/combined';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -1395,7 +1395,7 @@ MyFollowing.prototype.getActivities = function (authorization, options, callback
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/following/activities';
|
||||
'//v0.7/users/me/following/activities';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -1480,5 +1480,189 @@ MyFollowing.prototype.getActivities = function (authorization, options, callback
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @summary Get my suggestions of users to follow.
|
||||
*
|
||||
* This call uses the token from the Authorization header to determine the
|
||||
* type of suggestions to provide.
|
||||
* In particular, the token determines which third-party to
|
||||
* contact to obtain a list of suggested users,
|
||||
* such as friends (for Facebook), following users (for Twitter),
|
||||
* and contacts (for Google and Microsoft).
|
||||
* We check each retrieved user to see whether they are registered
|
||||
* with Embedded Social (this is done by checking
|
||||
* whether the user appears as a linked account in any Embedded
|
||||
* Social profile).
|
||||
* Note that passing a token without the appropiate scopes will
|
||||
* prevent Embedded Social from obtaining a list
|
||||
* of suggested users.
|
||||
* Support for input parameters 'cursor' and 'limit' is not
|
||||
* implemented in the current API release.
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
*
|
||||
* - Anon AK=AppKey
|
||||
*
|
||||
* - SocialPlus TK=SessionToken
|
||||
*
|
||||
* - Facebook AK=AppKey|TK=AccessToken
|
||||
*
|
||||
* - Google AK=AppKey|TK=AccessToken
|
||||
*
|
||||
* - Twitter AK=AppKey|RT=RequestToken|TK=AccessToken
|
||||
*
|
||||
* - Microsoft AK=AppKey|TK=AccessToken
|
||||
*
|
||||
* - AADS2S AK=AppKey|[UH=UserHandle]|TK=AADToken
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {string} [options.cursor] Current read cursor
|
||||
*
|
||||
* @param {number} [options.limit] Number of users compact views to return
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @param {function} callback
|
||||
*
|
||||
* @returns {function} callback(err, result, request, response)
|
||||
*
|
||||
* {Error} err - The Error object if an error occurred, null otherwise.
|
||||
*
|
||||
* {array} [result] - The deserialized result object.
|
||||
*
|
||||
* {object} [request] - The HTTP Request object if an error did not occur.
|
||||
*
|
||||
* {stream} [response] - The HTTP Response stream if an error did not occur.
|
||||
*/
|
||||
MyFollowing.prototype.getSuggestionsUsers = function (authorization, options, callback) {
|
||||
var client = this.client;
|
||||
if(!callback && typeof options === 'function') {
|
||||
callback = options;
|
||||
options = null;
|
||||
}
|
||||
if (!callback) {
|
||||
throw new Error('callback cannot be null.');
|
||||
}
|
||||
var cursor = (options && options.cursor !== undefined) ? options.cursor : undefined;
|
||||
var limit = (options && options.limit !== undefined) ? options.limit : undefined;
|
||||
// Validate
|
||||
try {
|
||||
if (cursor !== null && cursor !== undefined && typeof cursor.valueOf() !== 'string') {
|
||||
throw new Error('cursor must be of type string.');
|
||||
}
|
||||
if (limit !== null && limit !== undefined && typeof limit !== 'number') {
|
||||
throw new Error('limit must be of type number.');
|
||||
}
|
||||
if (authorization === null || authorization === undefined || typeof authorization.valueOf() !== 'string') {
|
||||
throw new Error('authorization cannot be null or undefined and it must be of type string.');
|
||||
}
|
||||
} catch (error) {
|
||||
return callback(error);
|
||||
}
|
||||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.7/users/me/following/suggestions/users';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
}
|
||||
if (limit !== null && limit !== undefined) {
|
||||
queryParameters.push('limit=' + encodeURIComponent(limit.toString()));
|
||||
}
|
||||
if (queryParameters.length > 0) {
|
||||
requestUrl += '?' + queryParameters.join('&');
|
||||
}
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
||||
// Create HTTP transport objects
|
||||
var httpRequest = new WebResource();
|
||||
httpRequest.method = 'GET';
|
||||
httpRequest.headers = {};
|
||||
httpRequest.url = requestUrl;
|
||||
// Set Headers
|
||||
if (authorization !== undefined && authorization !== null) {
|
||||
httpRequest.headers['Authorization'] = authorization;
|
||||
}
|
||||
if(options) {
|
||||
for(var headerName in options['customHeaders']) {
|
||||
if (options['customHeaders'].hasOwnProperty(headerName)) {
|
||||
httpRequest.headers[headerName] = options['customHeaders'][headerName];
|
||||
}
|
||||
}
|
||||
}
|
||||
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
|
||||
httpRequest.body = null;
|
||||
// Send Request
|
||||
return client.pipeline(httpRequest, function (err, response, responseBody) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
var statusCode = response.statusCode;
|
||||
if (statusCode !== 200 && statusCode !== 400 && statusCode !== 500 && statusCode !== 501) {
|
||||
var error = new Error(responseBody);
|
||||
error.statusCode = response.statusCode;
|
||||
error.request = msRest.stripRequest(httpRequest);
|
||||
error.response = msRest.stripResponse(response);
|
||||
if (responseBody === '') responseBody = null;
|
||||
var parsedErrorResponse;
|
||||
try {
|
||||
parsedErrorResponse = JSON.parse(responseBody);
|
||||
if (parsedErrorResponse) {
|
||||
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
|
||||
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
|
||||
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
|
||||
}
|
||||
} catch (defaultError) {
|
||||
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
|
||||
'- "%s" for the default response.', defaultError.message, responseBody);
|
||||
return callback(error);
|
||||
}
|
||||
return callback(error);
|
||||
}
|
||||
// Create Result
|
||||
var result = null;
|
||||
if (responseBody === '') responseBody = null;
|
||||
// Deserialize Response
|
||||
if (statusCode === 200) {
|
||||
var parsedResponse = null;
|
||||
try {
|
||||
parsedResponse = JSON.parse(responseBody);
|
||||
result = JSON.parse(responseBody);
|
||||
if (parsedResponse !== null && parsedResponse !== undefined) {
|
||||
var resultMapper = {
|
||||
required: false,
|
||||
serializedName: 'parsedResponse',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'UserCompactViewElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'UserCompactView'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
result = client.deserialize(resultMapper, parsedResponse, 'result');
|
||||
}
|
||||
} catch (error) {
|
||||
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
|
||||
deserializationError.request = msRest.stripRequest(httpRequest);
|
||||
deserializationError.response = msRest.stripResponse(response);
|
||||
return callback(deserializationError);
|
||||
}
|
||||
}
|
||||
|
||||
return callback(null, result, httpRequest, response);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
module.exports = MyFollowing;
|
||||
|
|
|
@ -96,7 +96,7 @@ MyLikes.prototype.getLikedTopics = function (authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/likes/topics';
|
||||
'//v0.7/users/me/likes/topics';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
|
|
@ -82,7 +82,7 @@ MyLinkedAccounts.prototype.getLinkedAccounts = function (authorization, options,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/linked_accounts';
|
||||
'//v0.7/users/me/linked_accounts';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -239,7 +239,7 @@ MyLinkedAccounts.prototype.postLinkedAccount = function (request, authorization,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/linked_accounts';
|
||||
'//v0.7/users/me/linked_accounts';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -403,7 +403,7 @@ MyLinkedAccounts.prototype.deleteLinkedAccount = function (identityProvider, aut
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/linked_accounts/{identityProvider}';
|
||||
'//v0.7/users/me/linked_accounts/{identityProvider}';
|
||||
requestUrl = requestUrl.replace('{identityProvider}', encodeURIComponent(identityProvider));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -100,7 +100,7 @@ MyNotifications.prototype.putNotificationsStatus = function (request, authorizat
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/notifications/status';
|
||||
'//v0.7/users/me/notifications/status';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -294,7 +294,7 @@ MyNotifications.prototype.getNotifications = function (authorization, options, c
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/notifications';
|
||||
'//v0.7/users/me/notifications';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -440,7 +440,7 @@ MyNotifications.prototype.getNotificationsCount = function (authorization, optio
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/notifications/count';
|
||||
'//v0.7/users/me/notifications/count';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
|
|
@ -27,7 +27,7 @@ function MyPendingUsers(client) {
|
|||
/**
|
||||
* @summary Reject follower request
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of pending user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -86,7 +86,7 @@ MyPendingUsers.prototype.deletePendingUser = function (userHandle, authorization
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/pending_users/{userHandle}';
|
||||
'//v0.7/users/me/pending_users/{userHandle}';
|
||||
requestUrl = requestUrl.replace('{userHandle}', encodeURIComponent(userHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -239,7 +239,7 @@ MyPendingUsers.prototype.getPendingUsers = function (authorization, options, cal
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/pending_users';
|
||||
'//v0.7/users/me/pending_users';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -382,7 +382,7 @@ MyPendingUsers.prototype.getPendingUsersCount = function (authorization, options
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/pending_users/count';
|
||||
'//v0.7/users/me/pending_users/count';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
|
|
@ -94,7 +94,7 @@ MyPins.prototype.getPins = function (authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/pins';
|
||||
'//v0.7/users/me/pins';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -243,7 +243,7 @@ MyPins.prototype.postPin = function (request, authorization, options, callback)
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/pins';
|
||||
'//v0.7/users/me/pins';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -341,7 +341,7 @@ MyPins.prototype.postPin = function (request, authorization, options, callback)
|
|||
/**
|
||||
* @summary Unpin a topic
|
||||
*
|
||||
* @param {string} topicHandle Topic handle
|
||||
* @param {string} topicHandle Handle of pinned topic
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -400,7 +400,7 @@ MyPins.prototype.deletePin = function (topicHandle, authorization, options, call
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/pins/{topicHandle}';
|
||||
'//v0.7/users/me/pins/{topicHandle}';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -32,6 +32,15 @@ function MyPushRegistrations(client) {
|
|||
* If multiple devices register for push notifications, then all
|
||||
* those devices
|
||||
* will get push notifications.
|
||||
* Each push notification will have three components: (1) a human
|
||||
* readable string
|
||||
* that the mobile OS should display to the user, (2) a
|
||||
* "publisher" string with
|
||||
* value "EmbeddedSocial" to identify that the push notification
|
||||
* came from
|
||||
* this service, and (3) an "activityHandle" that identifies which
|
||||
* activity
|
||||
* in the notification feed this push notification is for.
|
||||
*
|
||||
* @param {string} platform Platform type. Possible values include: 'Windows',
|
||||
* 'Android', 'IOS'
|
||||
|
@ -39,14 +48,14 @@ function MyPushRegistrations(client) {
|
|||
* @param {string} registrationId Unique registration ID provided by the
|
||||
* mobile OS.
|
||||
* You must URL encode the registration ID.
|
||||
* For Android, this is the GCM registration ID.
|
||||
* For Android, this is the GCM or FCM registration ID.
|
||||
* For Windows, this is the PushNotificationChannel URI.
|
||||
* For iOS, this is the device token.
|
||||
*
|
||||
* @param {object} request Put push registration request
|
||||
*
|
||||
* @param {date} [request.lastUpdatedTime] Gets or sets last updated time from
|
||||
* the OS
|
||||
* @param {string} [request.lastUpdatedTime] Gets or sets last updated time
|
||||
* from the OS in ISO 8601 format.
|
||||
* This is used to expire out registrations that have not been
|
||||
* updated every 30 days.
|
||||
*
|
||||
|
@ -120,7 +129,7 @@ MyPushRegistrations.prototype.putPushRegistration = function (platform, registra
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/push_registrations/{platform}/{registrationId}';
|
||||
'//v0.7/users/me/push_registrations/{platform}/{registrationId}';
|
||||
requestUrl = requestUrl.replace('{platform}', encodeURIComponent(platform));
|
||||
requestUrl = requestUrl.replace('{registrationId}', encodeURIComponent(registrationId));
|
||||
// trim all duplicate forward slashes in the url
|
||||
|
@ -165,7 +174,7 @@ MyPushRegistrations.prototype.putPushRegistration = function (platform, registra
|
|||
return callback(err);
|
||||
}
|
||||
var statusCode = response.statusCode;
|
||||
if (statusCode !== 204 && statusCode !== 401 && statusCode !== 409 && statusCode !== 500) {
|
||||
if (statusCode !== 204 && statusCode !== 400 && statusCode !== 401 && statusCode !== 500) {
|
||||
var error = new Error(responseBody);
|
||||
error.statusCode = response.statusCode;
|
||||
error.request = msRest.stripRequest(httpRequest);
|
||||
|
@ -295,7 +304,7 @@ MyPushRegistrations.prototype.deletePushRegistration = function (platform, regis
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/push_registrations/{platform}/{registrationId}';
|
||||
'//v0.7/users/me/push_registrations/{platform}/{registrationId}';
|
||||
requestUrl = requestUrl.replace('{platform}', encodeURIComponent(platform));
|
||||
requestUrl = requestUrl.replace('{registrationId}', encodeURIComponent(registrationId));
|
||||
// trim all duplicate forward slashes in the url
|
||||
|
|
|
@ -94,7 +94,7 @@ MyTopics.prototype.getTopics = function (authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/topics';
|
||||
'//v0.7/users/me/topics';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -249,7 +249,7 @@ MyTopics.prototype.getPopularTopics = function (authorization, options, callback
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/topics/popular';
|
||||
'//v0.7/users/me/topics/popular';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor.toString()));
|
||||
|
|
|
@ -87,7 +87,7 @@ Replies.prototype.getReply = function (replyHandle, authorization, options, call
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/replies/{replyHandle}';
|
||||
'//v0.7/replies/{replyHandle}';
|
||||
requestUrl = requestUrl.replace('{replyHandle}', encodeURIComponent(replyHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -225,7 +225,7 @@ Replies.prototype.deleteReply = function (replyHandle, authorization, options, c
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/replies/{replyHandle}';
|
||||
'//v0.7/replies/{replyHandle}';
|
||||
requestUrl = requestUrl.replace('{replyHandle}', encodeURIComponent(replyHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -100,7 +100,7 @@ ReplyLikes.prototype.getLikes = function (replyHandle, authorization, options, c
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/replies/{replyHandle}/likes';
|
||||
'//v0.7/replies/{replyHandle}/likes';
|
||||
requestUrl = requestUrl.replace('{replyHandle}', encodeURIComponent(replyHandle));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
@ -248,7 +248,7 @@ ReplyLikes.prototype.postLike = function (replyHandle, authorization, options, c
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/replies/{replyHandle}/likes';
|
||||
'//v0.7/replies/{replyHandle}/likes';
|
||||
requestUrl = requestUrl.replace('{replyHandle}', encodeURIComponent(replyHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -392,7 +392,7 @@ ReplyLikes.prototype.deleteLike = function (replyHandle, authorization, options,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/replies/{replyHandle}/likes/me';
|
||||
'//v0.7/replies/{replyHandle}/likes/me';
|
||||
requestUrl = requestUrl.replace('{replyHandle}', encodeURIComponent(replyHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -96,7 +96,7 @@ ReplyReports.prototype.postReport = function (replyHandle, postReportRequest, au
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/replies/{replyHandle}/reports';
|
||||
'//v0.7/replies/{replyHandle}/reports';
|
||||
requestUrl = requestUrl.replace('{replyHandle}', encodeURIComponent(replyHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -95,7 +95,7 @@ RequestTokens.prototype.getRequestToken = function (identityProvider, authorizat
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/request_tokens/{identityProvider}';
|
||||
'//v0.7/request_tokens/{identityProvider}';
|
||||
requestUrl = requestUrl.replace('{identityProvider}', encodeURIComponent(identityProvider));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -120,7 +120,7 @@ Search.prototype.getTopics = function (query, authorization, options, callback)
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/search/topics';
|
||||
'//v0.7/search/topics';
|
||||
var queryParameters = [];
|
||||
queryParameters.push('query=' + encodeURIComponent(query));
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
@ -298,7 +298,7 @@ Search.prototype.getUsers = function (query, authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/search/users';
|
||||
'//v0.7/search/users';
|
||||
var queryParameters = [];
|
||||
queryParameters.push('query=' + encodeURIComponent(query));
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
|
|
@ -92,7 +92,7 @@ Sessions.prototype.postSession = function (request, authorization, options, call
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/sessions';
|
||||
'//v0.7/sessions';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -238,7 +238,7 @@ Sessions.prototype.deleteSession = function (authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/sessions/current';
|
||||
'//v0.7/sessions/current';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
|
|
@ -100,7 +100,7 @@ TopicComments.prototype.getTopicComments = function (topicHandle, authorization,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/{topicHandle}/comments';
|
||||
'//v0.7/topics/{topicHandle}/comments';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
@ -263,7 +263,7 @@ TopicComments.prototype.postComment = function (topicHandle, request, authorizat
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/{topicHandle}/comments';
|
||||
'//v0.7/topics/{topicHandle}/comments';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -100,7 +100,7 @@ TopicLikes.prototype.getLikes = function (topicHandle, authorization, options, c
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/{topicHandle}/likes';
|
||||
'//v0.7/topics/{topicHandle}/likes';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
@ -248,7 +248,7 @@ TopicLikes.prototype.postLike = function (topicHandle, authorization, options, c
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/{topicHandle}/likes';
|
||||
'//v0.7/topics/{topicHandle}/likes';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -392,7 +392,7 @@ TopicLikes.prototype.deleteLike = function (topicHandle, authorization, options,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/{topicHandle}/likes/me';
|
||||
'//v0.7/topics/{topicHandle}/likes/me';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -96,7 +96,7 @@ TopicReports.prototype.postReport = function (topicHandle, postReportRequest, au
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/{topicHandle}/reports';
|
||||
'//v0.7/topics/{topicHandle}/reports';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -94,7 +94,7 @@ Topics.prototype.getTopics = function (authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics';
|
||||
'//v0.7/topics';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -264,7 +264,7 @@ Topics.prototype.postTopic = function (request, authorization, options, callback
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics';
|
||||
'//v0.7/topics';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -416,7 +416,7 @@ Topics.prototype.getTopic = function (topicHandle, authorization, options, callb
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/{topicHandle}';
|
||||
'//v0.7/topics/{topicHandle}';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -565,7 +565,7 @@ Topics.prototype.putTopic = function (topicHandle, request, authorization, optio
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/{topicHandle}';
|
||||
'//v0.7/topics/{topicHandle}';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -723,7 +723,7 @@ Topics.prototype.deleteTopic = function (topicHandle, authorization, options, ca
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/{topicHandle}';
|
||||
'//v0.7/topics/{topicHandle}';
|
||||
requestUrl = requestUrl.replace('{topicHandle}', encodeURIComponent(topicHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -806,7 +806,7 @@ Topics.prototype.deleteTopic = function (topicHandle, authorization, options, ca
|
|||
};
|
||||
|
||||
/**
|
||||
* @summary Get popular topics today
|
||||
* @summary Get popular topics for a time range
|
||||
*
|
||||
* @param {string} timeRange Time range. Possible values include: 'Today',
|
||||
* 'ThisWeek', 'ThisMonth', 'AllTime'
|
||||
|
@ -886,7 +886,7 @@ Topics.prototype.getPopularTopics = function (timeRange, authorization, options,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/popular/{timeRange}';
|
||||
'//v0.7/topics/popular/{timeRange}';
|
||||
requestUrl = requestUrl.replace('{timeRange}', encodeURIComponent(timeRange));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
@ -1042,7 +1042,7 @@ Topics.prototype.getFeaturedTopics = function (authorization, options, callback)
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/featured';
|
||||
'//v0.7/topics/featured';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor));
|
||||
|
@ -1196,7 +1196,7 @@ Topics.prototype.postTopicName = function (request, authorization, options, call
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/names';
|
||||
'//v0.7/topics/names';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -1292,7 +1292,7 @@ Topics.prototype.postTopicName = function (request, authorization, options, call
|
|||
};
|
||||
|
||||
/**
|
||||
* @summary Get a topic name
|
||||
* @summary Get a topic by topic name
|
||||
*
|
||||
* @param {string} topicName Topic name
|
||||
*
|
||||
|
@ -1328,13 +1328,14 @@ Topics.prototype.postTopicName = function (request, authorization, options, call
|
|||
* {Error} err - The Error object if an error occurred, null otherwise.
|
||||
*
|
||||
* {object} [result] - The deserialized result object.
|
||||
* See {@link GetTopicNameResponse} for more information.
|
||||
* See {@link GetTopicByNameResponse} for more
|
||||
* information.
|
||||
*
|
||||
* {object} [request] - The HTTP Request object if an error did not occur.
|
||||
*
|
||||
* {stream} [response] - The HTTP Response stream if an error did not occur.
|
||||
*/
|
||||
Topics.prototype.getTopicName = function (topicName, publisherType, authorization, options, callback) {
|
||||
Topics.prototype.getTopicByName = function (topicName, publisherType, authorization, options, callback) {
|
||||
var client = this.client;
|
||||
if(!callback && typeof options === 'function') {
|
||||
callback = options;
|
||||
|
@ -1365,7 +1366,7 @@ Topics.prototype.getTopicName = function (topicName, publisherType, authorizatio
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/names/{topicName}';
|
||||
'//v0.7/topics/names/{topicName}';
|
||||
requestUrl = requestUrl.replace('{topicName}', encodeURIComponent(topicName));
|
||||
var queryParameters = [];
|
||||
queryParameters.push('publisherType=' + encodeURIComponent(publisherType));
|
||||
|
@ -1431,7 +1432,7 @@ Topics.prototype.getTopicName = function (topicName, publisherType, authorizatio
|
|||
parsedResponse = JSON.parse(responseBody);
|
||||
result = JSON.parse(responseBody);
|
||||
if (parsedResponse !== null && parsedResponse !== undefined) {
|
||||
var resultMapper = new client.models['GetTopicNameResponse']().mapper();
|
||||
var resultMapper = new client.models['GetTopicByNameResponse']().mapper();
|
||||
result = client.deserialize(resultMapper, parsedResponse, 'result');
|
||||
}
|
||||
} catch (error) {
|
||||
|
@ -1518,7 +1519,7 @@ Topics.prototype.putTopicName = function (topicName, request, authorization, opt
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/names/{topicName}';
|
||||
'//v0.7/topics/names/{topicName}';
|
||||
requestUrl = requestUrl.replace('{topicName}', encodeURIComponent(topicName));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -1684,7 +1685,7 @@ Topics.prototype.deleteTopicName = function (topicName, request, authorization,
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/topics/names/{topicName}';
|
||||
'//v0.7/topics/names/{topicName}';
|
||||
requestUrl = requestUrl.replace('{topicName}', encodeURIComponent(topicName));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -27,7 +27,7 @@ function UserFollowers(client) {
|
|||
/**
|
||||
* @summary Get followers of a user
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of queried user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -100,7 +100,7 @@ UserFollowers.prototype.getFollowers = function (userHandle, authorization, opti
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/{userHandle}/followers';
|
||||
'//v0.7/users/{userHandle}/followers';
|
||||
requestUrl = requestUrl.replace('{userHandle}', encodeURIComponent(userHandle));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
|
|
@ -27,7 +27,7 @@ function UserFollowing(client) {
|
|||
/**
|
||||
* @summary Get following users of a user
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of queried user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -100,7 +100,7 @@ UserFollowing.prototype.getFollowing = function (userHandle, authorization, opti
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/{userHandle}/following';
|
||||
'//v0.7/users/{userHandle}/following';
|
||||
requestUrl = requestUrl.replace('{userHandle}', encodeURIComponent(userHandle));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
|
|
@ -99,7 +99,7 @@ UserReports.prototype.postReport = function (userHandle, postReportRequest, auth
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/{userHandle}/reports';
|
||||
'//v0.7/users/{userHandle}/reports';
|
||||
requestUrl = requestUrl.replace('{userHandle}', encodeURIComponent(userHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
|
|
@ -27,7 +27,7 @@ function UserTopics(client) {
|
|||
/**
|
||||
* @summary Get user topics sorted by creation time
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of queried user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -99,7 +99,7 @@ UserTopics.prototype.getTopics = function (userHandle, authorization, options, c
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/{userHandle}/topics';
|
||||
'//v0.7/users/{userHandle}/topics';
|
||||
requestUrl = requestUrl.replace('{userHandle}', encodeURIComponent(userHandle));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
@ -188,7 +188,7 @@ UserTopics.prototype.getTopics = function (userHandle, authorization, options, c
|
|||
/**
|
||||
* @summary Get user topics sorted by popularity
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of queried user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -260,7 +260,7 @@ UserTopics.prototype.getPopularTopics = function (userHandle, authorization, opt
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/{userHandle}/topics/popular';
|
||||
'//v0.7/users/{userHandle}/topics/popular';
|
||||
requestUrl = requestUrl.replace('{userHandle}', encodeURIComponent(userHandle));
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
|
|
|
@ -100,7 +100,7 @@ Users.prototype.postUser = function (request, authorization, options, callback)
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users';
|
||||
'//v0.7/users';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -247,7 +247,7 @@ Users.prototype.getMyProfile = function (authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me';
|
||||
'//v0.7/users/me';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -379,7 +379,7 @@ Users.prototype.deleteUser = function (authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me';
|
||||
'//v0.7/users/me';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -528,7 +528,7 @@ Users.prototype.putUserInfo = function (request, authorization, options, callbac
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/info';
|
||||
'//v0.7/users/me/info';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -687,7 +687,7 @@ Users.prototype.putUserPhoto = function (request, authorization, options, callba
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/photo';
|
||||
'//v0.7/users/me/photo';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -847,7 +847,7 @@ Users.prototype.putUserVisibility = function (request, authorization, options, c
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/me/visibility';
|
||||
'//v0.7/users/me/visibility';
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
requestUrl = requestUrl.replace(regex, '$1');
|
||||
|
@ -945,7 +945,7 @@ Users.prototype.putUserVisibility = function (request, authorization, options, c
|
|||
/**
|
||||
* @summary Get user profile
|
||||
*
|
||||
* @param {string} userHandle User handle
|
||||
* @param {string} userHandle Handle of queried user
|
||||
*
|
||||
* @param {string} authorization Format is: "Scheme CredentialsList". Possible
|
||||
* values are:
|
||||
|
@ -1005,7 +1005,7 @@ Users.prototype.getUser = function (userHandle, authorization, options, callback
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/{userHandle}';
|
||||
'//v0.7/users/{userHandle}';
|
||||
requestUrl = requestUrl.replace('{userHandle}', encodeURIComponent(userHandle));
|
||||
// trim all duplicate forward slashes in the url
|
||||
var regex = /([^:]\/)\/+/gi;
|
||||
|
@ -1152,7 +1152,7 @@ Users.prototype.getPopularUsers = function (authorization, options, callback) {
|
|||
|
||||
// Construct URL
|
||||
var requestUrl = this.client.baseUri +
|
||||
'//v0.5/users/popular';
|
||||
'//v0.7/users/popular';
|
||||
var queryParameters = [];
|
||||
if (cursor !== null && cursor !== undefined) {
|
||||
queryParameters.push('cursor=' + encodeURIComponent(cursor.toString()));
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -4,7 +4,7 @@
|
|||
"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. <autogenerated> This file was generated using AutoRest. </autogenerated>"
|
||||
},
|
||||
"version": "v0_5",
|
||||
"version": "v0_7",
|
||||
"title": "Microsoft Research Embedded Social SDK Service",
|
||||
"description": "The Embedded Social interface to clients is a RESTful API which is documented here.",
|
||||
"termsOfService": "ToS TBD",
|
||||
|
@ -22,7 +22,7 @@
|
|||
"https"
|
||||
],
|
||||
"paths": {
|
||||
"/v0.5/blobs": {
|
||||
"/v0.7/blobs": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Blobs"
|
||||
|
@ -78,7 +78,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/blobs/{blobHandle}": {
|
||||
"/v0.7/blobs/{blobHandle}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Blobs"
|
||||
|
@ -129,7 +129,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/builds/current": {
|
||||
"/v0.7/builds/current": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Builds"
|
||||
|
@ -155,7 +155,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/comments/{commentHandle}": {
|
||||
"/v0.7/comments/{commentHandle}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Comments"
|
||||
|
@ -259,7 +259,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/topics/{topicHandle}/comments": {
|
||||
"/v0.7/topics/{topicHandle}/comments": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Comments"
|
||||
|
@ -393,7 +393,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/hashtags/trending": {
|
||||
"/v0.7/hashtags/trending": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Hashtags"
|
||||
|
@ -439,7 +439,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/hashtags/autocomplete": {
|
||||
"/v0.7/hashtags/autocomplete": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Hashtags"
|
||||
|
@ -493,7 +493,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/images/{imageType}": {
|
||||
"/v0.7/images/{imageType}": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Images"
|
||||
|
@ -566,7 +566,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/images/{blobHandle}": {
|
||||
"/v0.7/images/{blobHandle}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Images"
|
||||
|
@ -619,7 +619,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/topics/{topicHandle}/likes": {
|
||||
"/v0.7/topics/{topicHandle}/likes": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Likes"
|
||||
|
@ -741,7 +741,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/topics/{topicHandle}/likes/me": {
|
||||
"/v0.7/topics/{topicHandle}/likes/me": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Likes"
|
||||
|
@ -797,7 +797,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/replies/{replyHandle}/likes": {
|
||||
"/v0.7/replies/{replyHandle}/likes": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Likes"
|
||||
|
@ -919,7 +919,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/replies/{replyHandle}/likes/me": {
|
||||
"/v0.7/replies/{replyHandle}/likes/me": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Likes"
|
||||
|
@ -975,7 +975,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/comments/{commentHandle}/likes": {
|
||||
"/v0.7/comments/{commentHandle}/likes": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Likes"
|
||||
|
@ -1097,7 +1097,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/comments/{commentHandle}/likes/me": {
|
||||
"/v0.7/comments/{commentHandle}/likes/me": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Likes"
|
||||
|
@ -1153,7 +1153,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/notifications/status": {
|
||||
"/v0.7/users/me/notifications/status": {
|
||||
"put": {
|
||||
"tags": [
|
||||
"Notifications"
|
||||
|
@ -1215,7 +1215,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/notifications": {
|
||||
"/v0.7/users/me/notifications": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Notifications"
|
||||
|
@ -1274,7 +1274,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/notifications/count": {
|
||||
"/v0.7/users/me/notifications/count": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Notifications"
|
||||
|
@ -1318,7 +1318,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/pins": {
|
||||
"/v0.7/users/me/pins": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Pins"
|
||||
|
@ -1438,7 +1438,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/pins/{topicHandle}": {
|
||||
"/v0.7/users/me/pins/{topicHandle}": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Pins"
|
||||
|
@ -1456,7 +1456,7 @@
|
|||
{
|
||||
"name": "topicHandle",
|
||||
"in": "path",
|
||||
"description": "Topic handle",
|
||||
"description": "Handle of pinned topic",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -1494,13 +1494,13 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/push_registrations/{platform}/{registrationId}": {
|
||||
"/v0.7/users/me/push_registrations/{platform}/{registrationId}": {
|
||||
"put": {
|
||||
"tags": [
|
||||
"Push Notifications"
|
||||
],
|
||||
"summary": "Register for push notifications or update an existing registration",
|
||||
"description": "A push notification will be generated and sent for each activity in my\r\n notifications feed where the unread status is true.\r\n If multiple devices register for push notifications, then all those devices\r\n will get push notifications.",
|
||||
"description": "A push notification will be generated and sent for each activity in my\r\n notifications feed where the unread status is true.\r\n If multiple devices register for push notifications, then all those devices\r\n will get push notifications.\r\n Each push notification will have three components: (1) a human readable string\r\n that the mobile OS should display to the user, (2) a \"publisher\" string with\r\n value \"EmbeddedSocial\" to identify that the push notification came from\r\n this service, and (3) an \"activityHandle\" that identifies which activity\r\n in the notification feed this push notification is for.",
|
||||
"operationId": "MyPushRegistrations_PutPushRegistration",
|
||||
"consumes": [
|
||||
"application/json",
|
||||
|
@ -1534,7 +1534,7 @@
|
|||
{
|
||||
"name": "registrationId",
|
||||
"in": "path",
|
||||
"description": "Unique registration ID provided by the mobile OS.\r\n You must URL encode the registration ID.\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.",
|
||||
"description": "Unique registration ID provided by the mobile OS.\r\n You must URL encode the registration ID.\r\n For Android, this is the GCM or FCM registration ID.\r\n For Windows, this is the PushNotificationChannel URI.\r\n For iOS, this is the device token.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -1562,12 +1562,12 @@
|
|||
"$ref": "#/definitions/Object"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad request. The request structure fields are not valid."
|
||||
},
|
||||
"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."
|
||||
}
|
||||
|
@ -1638,7 +1638,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/replies/{replyHandle}": {
|
||||
"/v0.7/replies/{replyHandle}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Replies"
|
||||
|
@ -1742,7 +1742,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/comments/{commentHandle}/replies": {
|
||||
"/v0.7/comments/{commentHandle}/replies": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Replies"
|
||||
|
@ -1876,7 +1876,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/{userHandle}/reports": {
|
||||
"/v0.7/users/{userHandle}/reports": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Reporting"
|
||||
|
@ -1945,7 +1945,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/topics/{topicHandle}/reports": {
|
||||
"/v0.7/topics/{topicHandle}/reports": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Reporting"
|
||||
|
@ -2013,7 +2013,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/replies/{replyHandle}/reports": {
|
||||
"/v0.7/replies/{replyHandle}/reports": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Reporting"
|
||||
|
@ -2081,7 +2081,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/comments/{commentHandle}/reports": {
|
||||
"/v0.7/comments/{commentHandle}/reports": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Reporting"
|
||||
|
@ -2149,7 +2149,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/search/topics": {
|
||||
"/v0.7/search/topics": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Search"
|
||||
|
@ -2216,7 +2216,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/search/users": {
|
||||
"/v0.7/search/users": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Search"
|
||||
|
@ -2283,7 +2283,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/sessions": {
|
||||
"/v0.7/sessions": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Sessions"
|
||||
|
@ -2341,7 +2341,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/sessions/current": {
|
||||
"/v0.7/sessions/current": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Sessions"
|
||||
|
@ -2384,7 +2384,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/request_tokens/{identityProvider}": {
|
||||
"/v0.7/request_tokens/{identityProvider}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Sessions"
|
||||
|
@ -2445,7 +2445,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/{userHandle}/followers": {
|
||||
"/v0.7/users/{userHandle}/followers": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -2463,7 +2463,7 @@
|
|||
{
|
||||
"name": "userHandle",
|
||||
"in": "path",
|
||||
"description": "User handle",
|
||||
"description": "Handle of queried user",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -2513,7 +2513,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/pending_users/{userHandle}": {
|
||||
"/v0.7/users/me/pending_users/{userHandle}": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -2531,7 +2531,7 @@
|
|||
{
|
||||
"name": "userHandle",
|
||||
"in": "path",
|
||||
"description": "User handle",
|
||||
"description": "Handle of pending user",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -2569,7 +2569,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/pending_users": {
|
||||
"/v0.7/users/me/pending_users": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -2627,7 +2627,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/pending_users/count": {
|
||||
"/v0.7/users/me/pending_users/count": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -2670,7 +2670,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/followers": {
|
||||
"/v0.7/users/me/followers": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -2793,7 +2793,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/followers/{userHandle}": {
|
||||
"/v0.7/users/me/followers/{userHandle}": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -2811,7 +2811,7 @@
|
|||
{
|
||||
"name": "userHandle",
|
||||
"in": "path",
|
||||
"description": "User handle",
|
||||
"description": "Handle of follower user",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -2849,7 +2849,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/following/users": {
|
||||
"/v0.7/users/me/following/users": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -2971,7 +2971,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/following/topics": {
|
||||
"/v0.7/users/me/following/topics": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -3092,7 +3092,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/following/users/{userHandle}": {
|
||||
"/v0.7/users/me/following/users/{userHandle}": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -3111,7 +3111,7 @@
|
|||
{
|
||||
"name": "userHandle",
|
||||
"in": "path",
|
||||
"description": "User handle",
|
||||
"description": "Handle of following user",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -3149,7 +3149,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/following/topics/{topicHandle}": {
|
||||
"/v0.7/users/me/following/topics/{topicHandle}": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -3168,7 +3168,7 @@
|
|||
{
|
||||
"name": "topicHandle",
|
||||
"in": "path",
|
||||
"description": "Topic handle",
|
||||
"description": "Handle of following topic",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -3194,7 +3194,7 @@
|
|||
"description": "Unauthorized. The user or the app is not authorized."
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found. The topic is not found."
|
||||
"description": "Not Found. The topic is not found or the user was not following the topic."
|
||||
},
|
||||
"409": {
|
||||
"description": "Conflict. Newer item exists."
|
||||
|
@ -3206,7 +3206,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/following/combined/{topicHandle}": {
|
||||
"/v0.7/users/me/following/combined/{topicHandle}": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -3225,7 +3225,7 @@
|
|||
{
|
||||
"name": "topicHandle",
|
||||
"in": "path",
|
||||
"description": "Topic handle",
|
||||
"description": "Handle of following topic",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -3260,7 +3260,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/following/combined": {
|
||||
"/v0.7/users/me/following/combined": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -3319,7 +3319,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/following/activities": {
|
||||
"/v0.7/users/me/following/activities": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -3378,7 +3378,69 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/blocked_users": {
|
||||
"/v0.7/users/me/following/suggestions/users": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
],
|
||||
"summary": "Get my suggestions of users to follow.",
|
||||
"description": "This call uses the token from the Authorization header to determine the type of suggestions to provide.\r\n In particular, the token determines which third-party to contact to obtain a list of suggested users,\r\n such as friends (for Facebook), following users (for Twitter), and contacts (for Google and Microsoft).\r\n We check each retrieved user to see whether they are registered with Embedded Social (this is done by checking\r\n whether the user appears as a linked account in any Embedded Social profile).\r\n Note that passing a token without the appropiate scopes will prevent Embedded Social from obtaining a list\r\n of suggested users.\r\n Support for input parameters 'cursor' and 'limit' is not implemented in the current API release.",
|
||||
"operationId": "MyFollowing_GetSuggestionsUsers",
|
||||
"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 users compact views to return",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
{
|
||||
"name": "Authorization",
|
||||
"in": "header",
|
||||
"description": "Format is: \"Scheme CredentialsList\". Possible values are:\n\n- Anon AK=AppKey\n\n- SocialPlus TK=SessionToken\n\n- Facebook AK=AppKey|TK=AccessToken\n\n- Google AK=AppKey|TK=AccessToken\n\n- Twitter AK=AppKey|RT=RequestToken|TK=AccessToken\n\n- Microsoft AK=AppKey|TK=AccessToken\n\n- AADS2S AK=AppKey|[UH=UserHandle]|TK=AADToken",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK. The request was successful.",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/UserCompactView"
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad request. The request is invalid."
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error. The server raised an exception."
|
||||
},
|
||||
"501": {
|
||||
"description": "Not implemented."
|
||||
}
|
||||
},
|
||||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.7/users/me/blocked_users": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -3500,7 +3562,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/blocked_users/{userHandle}": {
|
||||
"/v0.7/users/me/blocked_users/{userHandle}": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -3518,7 +3580,7 @@
|
|||
{
|
||||
"name": "userHandle",
|
||||
"in": "path",
|
||||
"description": "User handle",
|
||||
"description": "Handle of blocked user",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -3556,7 +3618,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/{userHandle}/following": {
|
||||
"/v0.7/users/{userHandle}/following": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Social"
|
||||
|
@ -3574,7 +3636,7 @@
|
|||
{
|
||||
"name": "userHandle",
|
||||
"in": "path",
|
||||
"description": "User handle",
|
||||
"description": "Handle of queried user",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -3624,7 +3686,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/topics": {
|
||||
"/v0.7/topics": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Topics"
|
||||
|
@ -3741,7 +3803,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/topics/{topicHandle}": {
|
||||
"/v0.7/topics/{topicHandle}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Topics"
|
||||
|
@ -3914,12 +3976,12 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/topics/popular/{timeRange}": {
|
||||
"/v0.7/topics/popular/{timeRange}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Topics"
|
||||
],
|
||||
"summary": "Get popular topics today",
|
||||
"summary": "Get popular topics for a time range",
|
||||
"operationId": "Topics_GetPopularTopics",
|
||||
"consumes": [],
|
||||
"produces": [
|
||||
|
@ -3989,7 +4051,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/topics/featured": {
|
||||
"/v0.7/topics/featured": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Topics"
|
||||
|
@ -4047,7 +4109,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/topics/names": {
|
||||
"/v0.7/topics/names": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Topics"
|
||||
|
@ -4108,13 +4170,13 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/topics/names/{topicName}": {
|
||||
"/v0.7/topics/names/{topicName}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Topics"
|
||||
],
|
||||
"summary": "Get a topic name",
|
||||
"operationId": "Topics_GetTopicName",
|
||||
"summary": "Get a topic by topic name",
|
||||
"operationId": "Topics_GetTopicByName",
|
||||
"consumes": [],
|
||||
"produces": [
|
||||
"application/json",
|
||||
|
@ -4156,7 +4218,7 @@
|
|||
"200": {
|
||||
"description": "OK. The request was successful.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/GetTopicNameResponse"
|
||||
"$ref": "#/definitions/GetTopicByNameResponse"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
|
@ -4298,7 +4360,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/topics": {
|
||||
"/v0.7/users/me/topics": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -4356,7 +4418,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/topics/popular": {
|
||||
"/v0.7/users/me/topics/popular": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -4415,7 +4477,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/apps/{appHandle}/following/difference": {
|
||||
"/v0.7/users/me/apps/{appHandle}/following/difference": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -4472,7 +4534,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/apps": {
|
||||
"/v0.7/users/me/apps": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -4518,7 +4580,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/likes/topics": {
|
||||
"/v0.7/users/me/likes/topics": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -4577,7 +4639,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/linked_accounts": {
|
||||
"/v0.7/users/me/linked_accounts": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -4670,7 +4732,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/linked_accounts/{identityProvider}": {
|
||||
"/v0.7/users/me/linked_accounts/{identityProvider}": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -4734,7 +4796,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users": {
|
||||
"/v0.7/users": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -4796,7 +4858,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me": {
|
||||
"/v0.7/users/me": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -4880,7 +4942,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/info": {
|
||||
"/v0.7/users/me/info": {
|
||||
"put": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -4941,7 +5003,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/photo": {
|
||||
"/v0.7/users/me/photo": {
|
||||
"put": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -5002,7 +5064,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/me/visibility": {
|
||||
"/v0.7/users/me/visibility": {
|
||||
"put": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -5063,7 +5125,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/{userHandle}": {
|
||||
"/v0.7/users/{userHandle}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -5081,7 +5143,7 @@
|
|||
{
|
||||
"name": "userHandle",
|
||||
"in": "path",
|
||||
"description": "User handle",
|
||||
"description": "Handle of queried user",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -5113,7 +5175,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/popular": {
|
||||
"/v0.7/users/popular": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -5166,7 +5228,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/{userHandle}/topics": {
|
||||
"/v0.7/users/{userHandle}/topics": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -5184,7 +5246,7 @@
|
|||
{
|
||||
"name": "userHandle",
|
||||
"in": "path",
|
||||
"description": "User handle",
|
||||
"description": "Handle of queried user",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -5234,7 +5296,7 @@
|
|||
"deprecated": false
|
||||
}
|
||||
},
|
||||
"/v0.5/users/{userHandle}/topics/popular": {
|
||||
"/v0.7/users/{userHandle}/topics/popular": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
|
@ -5252,7 +5314,7 @@
|
|||
{
|
||||
"name": "userHandle",
|
||||
"in": "path",
|
||||
"description": "User handle",
|
||||
"description": "Handle of queried user",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -5993,8 +6055,7 @@
|
|||
"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.",
|
||||
"description": "Gets or sets last updated time from the OS in ISO 8601 format.\r\n This is used to expire out registrations that have not been updated every 30 days.",
|
||||
"type": "string"
|
||||
},
|
||||
"language": {
|
||||
|
@ -6428,8 +6489,8 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"GetTopicNameResponse": {
|
||||
"description": "Response from get topic name",
|
||||
"GetTopicByNameResponse": {
|
||||
"description": "Response from get topic by name",
|
||||
"required": [
|
||||
"topicHandle"
|
||||
],
|
||||
|
|
Загрузка…
Ссылка в новой задаче