Exemplo n.º 1
0
 /// <summary>
 /// For Enterprise Grid workspaces, map local user IDs to global user IDs
 /// <see href="https://api.slack.com/methods/migration.exchange" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `tokens.basic`
 /// </param>
 /// <param name='toOld'>
 /// Specify `true` to convert `W` global user IDs to workspace-specific `U`
 /// IDs. Defaults to `false`.
 /// </param>
 /// <param name='users'>
 /// A comma-separated list of user ids, up to 400 per request
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ExchangeOKResponse> ExchangeAsync(this IMigration operations, string token = default(string), bool?toOld = default(bool?), string users = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ExchangeWithHttpMessagesAsync(token, toOld, users, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }