Interface IPostArgs

Options specifying the data that is to be posted.

interface IPostArgs {
    changePassword?: IChangePasswordArgs;
    conversationId?: string;
    id?: string;
    profileBanner?: string;
    profileImage?: string;
    profileOptions?: IProfileUpdateOptions;
    tweet?: INewTweet;
    upload?: IUploadArgs;
    userId?: string;
    username?: string;
}

Implemented by

Properties

changePassword?: IChangePasswordArgs

Password change arguments.

Required only when changing password using ResourceType.USER_PASSWORD_CHANGE.

conversationId?: string

The id of the conversation to delete.

Required only when deleting a conversation using ResourceType.DM_DELETE_CONVERSATION

id?: string

The id of the target resource.

profileBanner?: string

Base64-encoded profile banner data.

Required only when updating profile banner using ResourceType.USER_PROFILE_BANNER_UPDATE.

profileImage?: string

Base64-encoded profile image data.

Required only when updating profile image using ResourceType.USER_PROFILE_IMAGE_UPDATE.

profileOptions?: IProfileUpdateOptions

Profile update options.

Required only when updating user profile using ResourceType.USER_PROFILE_UPDATE

tweet?: INewTweet

The tweet that is to be posted.

Required only when posting a tweet using ResourceType.TWEET_POST

upload?: IUploadArgs

The media file to be uploaded.

Required only when uploading a media using the following resources:

userId?: string

The id of the target user.

Required only for the following resources:

username?: string

The new username to set.

Required only when changing username using ResourceType.USER_USERNAME_CHANGE.