Skip to content

Commit

Permalink
Merge pull request #120 from OfficeDev/aosolis/release-0.2.0
Browse files Browse the repository at this point in the history
Update version to 0.2.0
  • Loading branch information
RamjotSingh authored May 29, 2018
2 parents 780f2e1 + f1c9663 commit 131b4f3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
2 changes: 1 addition & 1 deletion Node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "botbuilder-teams",
"version": "0.1.6",
"version": "0.2.0",
"description": "Microsoft Teams Bot Builder extension SDK",
"scripts": {
"prepublish": "cd src && tsc && copy botbuilder-teams.d.ts ..\\lib",
Expand Down
25 changes: 0 additions & 25 deletions Node/src/TeamsChatConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,31 +124,6 @@ export class TeamsChatConnector extends builder.ChatConnector {
});
}

/**
* @deprecated Since version 0.1.2 Will be deleted in version 0.1.5. Use fetchMembers(serverUrl, conversationId, callback).
* Return a list of members in a conversation or channel
* @param {string} serverUrl - Server url is composed of baseUrl and cloud name, remember to find your correct cloud name in session or the function will not find the team.
* @param {string} conversationId - The conversation id or channel id, you can look it up in session object.
* @param {string} tenantId - The tenantId, you can look it up in session object.
* @param {function} callback - This callback returns err or result.
*/
public fetchMemberList(serverUrl: string, conversationId: string, tenantId: string, callback: (err: Error, result: ChannelAccount[]) => void) : void {
var options: msRest.RequestOptions = {customHeaders: {}, jar: false};
var restClient = new RestClient(serverUrl, null);
var remoteQuery = new RemoteQuery(restClient);
this.getAccessToken((err, token) => {
if (!err && token) {
options.customHeaders = {
'Authorization': 'Bearer ' + token,
'X-MsTeamsTenantId' : tenantId
};
remoteQuery.fetchMemberList(conversationId, options, callback);
} else {
return callback(new Error('Failed to authorize request'), null);
}
});
}

/**
* Return a list of members in a team or channel
* @param {string} serverUrl - Server url is composed of baseUrl and cloud name, remember to find your correct cloud name in session or the function will not find the team.
Expand Down
10 changes: 0 additions & 10 deletions Node/src/botbuilder-teams.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,16 +906,6 @@ export class TeamsChatConnector extends builder.ChatConnector {
*/
public fetchTeamInfo(serviceUrl: string, teamId: string, callback: (err: Error, result: TeamInfo) => void) : void;

/**
* @deprecated Since version 0.1.2 Will be deleted in version 0.1.5. Use fetchMembers(serviceUrl, conversationId, callback).
* Return a list of members in a conversation or channel.
* @param {string} serviceUrl - The team's service url, which should be taken from a previous message received from that team. If the wrong service url is used, the team will not be found and the method wil fail.
* @param {string} conversationId - The conversation id or channel id, you can look it up in session object.
* @param {string} tenantId - The tenantId, you can look it up in session object.
* @param {function} callback - This callback returns err or result.
*/
public fetchMemberList(serviceUrl: string, conversationId: string, tenantId: string, callback: (err: Error, result: ChannelAccount[]) => void) : void;

/**
* Return a list of members in team or chat.
* @param {string} serviceUrl - The service url for the team or chat, which should be taken from a previous message received from that team or chat. If the wrong service url is used, the method wil fail.
Expand Down

0 comments on commit 131b4f3

Please sign in to comment.