TwitterProvider Class

Summary

Contains functionality related to Twitter API
Assembly
Cake.Twitter.dll
Namespace
Cake.Twitter
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["TwitterProvider"] class Type type-node

Syntax

public sealed class TwitterProvider

Constructors

Name Summary
TwitterProvider(string, string, string, string) Creates an object for sending tweets to Twitter using Single-user OAuth. Get your access keys by creating an app at apps.twitter.com then visiting the "Keys and Access Tokens" section for your app. They can be found under the "Your Access Token" heading.

Methods

Name Value Summary
Tweet(string) Task<string>
Sends a tweet with the supplied text and returns the response from the Twitter API.

Extension Methods

Name Value Summary
Dump<TwitterProvider>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<TwitterProvider>(TwitterProvider[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<TwitterProvider>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<TwitterProvider>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<TwitterProvider>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<TwitterProvider>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin