public IResponse Visit(AccessTokenRequest request) { return(_restWrapper.Post <AccessTokenRequestBody, AccessToken>(request.Body, uri: GetEndpoint(request), actions: GetCustomResponseHandlers(request))); }
public AccessToken Authenticate(string apiKey, string username, string password) { AccessTokenRequest request = new AccessTokenRequest(apiKey, username, password); return(_restWrapper.Post <AccessTokenRequestBody, AccessToken>( request.Body, BuildUri(request.ApiVersion, "access_tokens"), actions: null)); }