TwitterClient Class

Definition

Typed client for twitter connector.

public class TwitterClient : Azure.Connectors.Sdk.ConnectorClientBase
type TwitterClient = class
    inherit ConnectorClientBase
Public Class TwitterClient
Inherits ConnectorClientBase
Inheritance
TwitterClient

Constructors

Name Description
TwitterClient()
TwitterClient(String)

Creates a new TwitterClient with the specified connection runtime URL string. Uses ManagedIdentityCredential by default.

TwitterClient(Uri, TokenCredential, ConnectorClientOptions)

Creates a new TwitterClient with the specified connection runtime URL and credential.

TwitterClient(Uri, TokenCredential)

Creates a new TwitterClient with the specified connection runtime URL and credential.

TwitterClient(Uri)

Creates a new TwitterClient with the specified connection runtime URL. Uses ManagedIdentityCredential by default.

Properties

Name Description
ConnectorName
Pipeline

Gets the HTTP pipeline for making connector requests.

(Inherited from ConnectorClientBase)

Methods

Name Description
CallConnectorAsync(HttpMethod, String, Object, CancellationToken)

Sends a connector API request with no response body. Uses the Azure.Core HttpPipeline for retry, authentication, and diagnostics.

(Inherited from ConnectorClientBase)
CallConnectorAsync<TResponse>(HttpMethod, String, Object, CancellationToken)

Sends a connector API request and deserializes the JSON response. Uses the Azure.Core HttpPipeline for retry, authentication, and diagnostics.

(Inherited from ConnectorClientBase)
Dispose() (Inherited from ConnectorClientBase)
Dispose(Boolean)

Disposes the connector client resources.

(Inherited from ConnectorClientBase)
FollowersAsync(String, Nullable<Int32>, CancellationToken)

Get followers

FollowingAsync(String, Nullable<Int32>, CancellationToken)

Get following

HomeTimelineAsync(Nullable<Int32>, CancellationToken)

Get home timeline

MyFollowersAsync(Nullable<Int32>, CancellationToken)

Get my followers

MyFollowingAsync(Nullable<Int32>, CancellationToken)

Get my following

ResolveUrl(String)

Resolves a relative path or validates an absolute URL against the connection runtime URL. When the NextLink host matches the connection URL, it's used as-is. When it doesn't match (codeless connectors like ARM return nextLink pointing to the backend host e.g. management.azure.com), the path+query is extracted and routed through the APIM proxy. This is safe because the request still goes through the connection runtime URL with API Hub auth.

(Inherited from ConnectorClientBase)
RetweetAsync(String, Nullable<Boolean>, CancellationToken)

Retweet

SearchTweetAsync(String, Nullable<Int32>, String, CancellationToken)

Search tweets

TweetAsync(Byte[], String, CancellationToken)

Post a tweet

UserAsync(String, CancellationToken)

Get user

UserTimelineAsync(String, Nullable<Int32>, CancellationToken)

Get user timeline

Applies to