C# Class SnapDotNet.Core.Snapchat.Api.Endpoints

Exibir arquivo Open project: 0xdeafcafe/SnapDotNet Class Usage Examples

Public Methods

Method Description
Authenticate ( string username, string password ) : Account

AuthenticateAsync ( string username, string password ) : Task

ChangeFriendDisplayName ( string friendUsername, string newDisplayName ) : Response

ChangeFriendDisplayNameAsync ( string friendUsername, string newDisplayName ) : Task

ClearFeed ( ) : bool
ClearFeedAsync ( ) : Task

Endpoints ( SnapChatManager snapchatManager ) : System

FindFriends ( string countryCode, string>.ObservableCollection numberAndDisplayNameCollection ) : FoundFriend

FindFriendsAsync ( string countryCode, string>.ObservableCollection numberAndDisplayNameCollection ) : Task

GetCaptchaImages ( string email, string authToken ) : Captcha

GetCaptchaImagesAsync ( string email, string authToken ) : Task

GetPublicActivity ( string requestedUsernames = null ) : PublicActivity>.ObservableDictionary
GetPublicActivityAsync ( string requestedUsernames = null ) : PublicActivity>>.Task

GetSnapBlobAsync ( string snapId ) : Task

GetStories ( ) : Stories

GetStoriesAsync ( ) : Task

GetStoryBlob ( Uri blobPath, string key, string iv, bool zipped ) : byte[]

GetStoryMediaBlob ( Story storyInstance ) : byte[]

GetStoryThumbnailBlob ( Story storyInstance ) : byte[]

GetUpdates ( ) : Account

GetUpdatesAsync ( ) : Task

Logout ( ) : Response

LogoutAsync ( ) : Task

Register ( int age, string birthday, string email, string password ) : RegistrationResponse

RegisterAndGetCaptcha ( int age, string birthday, string email, string password ) : Captcha

RegisterAndGetCaptchaAsync ( int age, string birthday, string email, string password ) : Task

RegisterAsync ( int age, string birthday, string email, string password ) : Task

RegisterUsername ( string email, string authToken, string requestedUsername ) : Account

RegisterUsernameAsync ( string email, string authToken, string requestedUsername ) : Task

SendFriendAction ( string friendUsername, FriendAction action ) : Response

SendFriendActionAsync ( string friendUsername, FriendAction action ) : Task

SendSnapViewedEvent ( string snapId, int timeViewed, int captureTime ) : bool

SendSnapViewedEventAsync ( string snapId, int timeViewed, int captureTime ) : Task

SendStoryViewedEvent ( string storyId, int screenshotCount ) : bool

SendStoryViewedEventAsync ( string storyId, int screenshotCount ) : Task

SetBestFriendCount ( int numberOfBestFriends ) : BestFriends
SetBestFriendCountAsync ( int numberOfBestFriends ) : Task

SolveCaptcha ( string email, string captchaId, string authToken, bool captchaImagesWithGhosts ) : bool

SolveCaptchaAsync ( string email, string captchaId, string authToken, bool captchaImagesWithGhosts ) : Task

UpdateAccountPrivacy ( bool isPrivate ) : bool

UpdateAccountPrivacyAsync ( bool isPrivate ) : Task

UpdateBirthday ( int birthMonth, int birthDay ) : bool

UpdateBirthdayAsync ( int birthMonth, int birthDay ) : Task

UpdateEmail ( string email ) : bool

UpdateEmailAsync ( string email ) : Task

UpdateFeatureSettings ( bool smartFilters = false, bool visualFilters = false, bool specialText = false, bool replaySnaps = false, bool frontFacingFlash = false ) : bool

UpdateFeatureSettingsAsync ( bool smartFilters = false, bool visualFilters = false, bool specialText = false, bool replaySnaps = false, bool frontFacingFlash = false ) : Task

UpdateMaturitySettings ( bool canViewMatureContent ) : bool

UpdateMaturitySettingsAsync ( bool canViewMatureContent ) : Task

UpdateSetting ( string actionName, string>.Dictionary extraPostData = null ) : bool

UpdateStoryPrivacy ( bool friendsOnly, List friendsToBlock = null ) : bool

UpdateStoryPrivacyAsync ( bool friendsOnly, List friendsToBlock = null ) : Task

Private Methods

Method Description
GetAuthedUsername ( ) : string

SendSnapEventsAsync ( object>.Dictionary events, double>.Dictionary snapInfo ) : Task

SendStoryEventsAsync ( string>.Dictionary storyInfo ) : Task

UpdateSettingAsync ( string actionName, string>.Dictionary extraPostData = null ) : Task

Method Details

Authenticate() public method

public Authenticate ( string username, string password ) : Account
username string
password string
return SnapDotNet.Core.Snapchat.Models.Account

AuthenticateAsync() public method

public AuthenticateAsync ( string username, string password ) : Task
username string
password string
return Task

ChangeFriendDisplayName() public method

public ChangeFriendDisplayName ( string friendUsername, string newDisplayName ) : Response
friendUsername string
newDisplayName string
return Response

ChangeFriendDisplayNameAsync() public method

public ChangeFriendDisplayNameAsync ( string friendUsername, string newDisplayName ) : Task
friendUsername string
newDisplayName string
return Task

ClearFeed() public method

public ClearFeed ( ) : bool
return bool

ClearFeedAsync() public method

public ClearFeedAsync ( ) : Task
return Task

Endpoints() public method

public Endpoints ( SnapChatManager snapchatManager ) : System
snapchatManager SnapChatManager
return System

FindFriends() public method

public FindFriends ( string countryCode, string>.ObservableCollection numberAndDisplayNameCollection ) : FoundFriend
countryCode string
numberAndDisplayNameCollection string>.ObservableCollection A collection of Tuples, where the first item is a phone full number /// (without country code), and the second is the Display Name that will be applied to the account with this number.
return SnapDotNet.Core.Snapchat.Models.FoundFriend

FindFriendsAsync() public method

public FindFriendsAsync ( string countryCode, string>.ObservableCollection numberAndDisplayNameCollection ) : Task
countryCode string
numberAndDisplayNameCollection string>.ObservableCollection A collection of Tuples, where the first item is a phone full number /// (without country code), and the second is the Display Name that will be applied to the account with this number.
return Task

GetCaptchaImages() public method

public GetCaptchaImages ( string email, string authToken ) : Captcha
email string
authToken string
return SnapDotNet.Core.Snapchat.Models.Captcha

GetCaptchaImagesAsync() public method

public GetCaptchaImagesAsync ( string email, string authToken ) : Task
email string
authToken string
return Task

GetPublicActivity() public method

public GetPublicActivity ( string requestedUsernames = null ) : PublicActivity>.ObservableDictionary
requestedUsernames string
return PublicActivity>.ObservableDictionary

GetPublicActivityAsync() public method

public GetPublicActivityAsync ( string requestedUsernames = null ) : PublicActivity>>.Task
requestedUsernames string
return PublicActivity>>.Task

GetSnapBlobAsync() public method

public GetSnapBlobAsync ( string snapId ) : Task
snapId string
return Task

GetStories() public method

public GetStories ( ) : Stories
return Stories

GetStoriesAsync() public method

public GetStoriesAsync ( ) : Task
return Task

GetStoryBlob() public method

public GetStoryBlob ( Uri blobPath, string key, string iv, bool zipped ) : byte[]
blobPath System.Uri
key string
iv string
zipped bool
return byte[]

GetStoryMediaBlob() public method

public GetStoryMediaBlob ( Story storyInstance ) : byte[]
storyInstance Story
return byte[]

GetStoryThumbnailBlob() public method

public GetStoryThumbnailBlob ( Story storyInstance ) : byte[]
storyInstance Story
return byte[]

GetUpdates() public method

public GetUpdates ( ) : Account
return SnapDotNet.Core.Snapchat.Models.Account

GetUpdatesAsync() public method

public GetUpdatesAsync ( ) : Task
return Task

Logout() public method

public Logout ( ) : Response
return Response

LogoutAsync() public method

public LogoutAsync ( ) : Task
return Task

Register() public method

public Register ( int age, string birthday, string email, string password ) : RegistrationResponse
age int
birthday string
email string
password string
return SnapDotNet.Core.Snapchat.Models.RegistrationResponse

RegisterAndGetCaptcha() public method

public RegisterAndGetCaptcha ( int age, string birthday, string email, string password ) : Captcha
age int
birthday string
email string
password string
return SnapDotNet.Core.Snapchat.Models.Captcha

RegisterAndGetCaptchaAsync() public method

public RegisterAndGetCaptchaAsync ( int age, string birthday, string email, string password ) : Task
age int
birthday string
email string
password string
return Task

RegisterAsync() public method

public RegisterAsync ( int age, string birthday, string email, string password ) : Task
age int
birthday string
email string
password string
return Task

RegisterUsername() public method

public RegisterUsername ( string email, string authToken, string requestedUsername ) : Account
email string
authToken string
requestedUsername string
return SnapDotNet.Core.Snapchat.Models.Account

RegisterUsernameAsync() public method

public RegisterUsernameAsync ( string email, string authToken, string requestedUsername ) : Task
email string
authToken string
requestedUsername string
return Task

SendFriendAction() public method

public SendFriendAction ( string friendUsername, FriendAction action ) : Response
friendUsername string
action FriendAction
return Response

SendFriendActionAsync() public method

public SendFriendActionAsync ( string friendUsername, FriendAction action ) : Task
friendUsername string
action FriendAction
return Task

SendSnapViewedEvent() public method

public SendSnapViewedEvent ( string snapId, int timeViewed, int captureTime ) : bool
snapId string
timeViewed int
captureTime int
return bool

SendSnapViewedEventAsync() public method

public SendSnapViewedEventAsync ( string snapId, int timeViewed, int captureTime ) : Task
snapId string
timeViewed int
captureTime int
return Task

SendStoryViewedEvent() public method

public SendStoryViewedEvent ( string storyId, int screenshotCount ) : bool
storyId string
screenshotCount int
return bool

SendStoryViewedEventAsync() public method

public SendStoryViewedEventAsync ( string storyId, int screenshotCount ) : Task
storyId string
screenshotCount int
return Task

SetBestFriendCount() public method

public SetBestFriendCount ( int numberOfBestFriends ) : BestFriends
numberOfBestFriends int
return SnapDotNet.Core.Snapchat.Models.BestFriends

SetBestFriendCountAsync() public method

public SetBestFriendCountAsync ( int numberOfBestFriends ) : Task
numberOfBestFriends int Must be 3, 5, or 7.
return Task

SolveCaptcha() public method

public SolveCaptcha ( string email, string captchaId, string authToken, bool captchaImagesWithGhosts ) : bool
email string
captchaId string
authToken string
captchaImagesWithGhosts bool
return bool

SolveCaptchaAsync() public method

public SolveCaptchaAsync ( string email, string captchaId, string authToken, bool captchaImagesWithGhosts ) : Task
email string
captchaId string
authToken string
captchaImagesWithGhosts bool
return Task

UpdateAccountPrivacy() public method

public UpdateAccountPrivacy ( bool isPrivate ) : bool
isPrivate bool
return bool

UpdateAccountPrivacyAsync() public method

public UpdateAccountPrivacyAsync ( bool isPrivate ) : Task
isPrivate bool
return Task

UpdateBirthday() public method

public UpdateBirthday ( int birthMonth, int birthDay ) : bool
birthMonth int
birthDay int
return bool

UpdateBirthdayAsync() public method

public UpdateBirthdayAsync ( int birthMonth, int birthDay ) : Task
birthMonth int
birthDay int
return Task

UpdateEmail() public method

public UpdateEmail ( string email ) : bool
email string
return bool

UpdateEmailAsync() public method

public UpdateEmailAsync ( string email ) : Task
email string
return Task

UpdateFeatureSettings() public method

public UpdateFeatureSettings ( bool smartFilters = false, bool visualFilters = false, bool specialText = false, bool replaySnaps = false, bool frontFacingFlash = false ) : bool
smartFilters bool
visualFilters bool
specialText bool
replaySnaps bool
frontFacingFlash bool
return bool

UpdateFeatureSettingsAsync() public method

public UpdateFeatureSettingsAsync ( bool smartFilters = false, bool visualFilters = false, bool specialText = false, bool replaySnaps = false, bool frontFacingFlash = false ) : Task
smartFilters bool
visualFilters bool
specialText bool
replaySnaps bool
frontFacingFlash bool
return Task

UpdateMaturitySettings() public method

public UpdateMaturitySettings ( bool canViewMatureContent ) : bool
canViewMatureContent bool
return bool

UpdateMaturitySettingsAsync() public method

public UpdateMaturitySettingsAsync ( bool canViewMatureContent ) : Task
canViewMatureContent bool
return Task

UpdateSetting() public method

public UpdateSetting ( string actionName, string>.Dictionary extraPostData = null ) : bool
actionName string
extraPostData string>.Dictionary
return bool

UpdateStoryPrivacy() public method

public UpdateStoryPrivacy ( bool friendsOnly, List friendsToBlock = null ) : bool
friendsOnly bool
friendsToBlock List
return bool

UpdateStoryPrivacyAsync() public method

public UpdateStoryPrivacyAsync ( bool friendsOnly, List friendsToBlock = null ) : Task
friendsOnly bool
friendsToBlock List
return Task