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

Afficher le fichier Open project: 0xdeafcafe/SnapDotNet Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Authenticate ( string username, string password ) : Account
username string
password string
Résultat SnapDotNet.Core.Snapchat.Models.Account

AuthenticateAsync() public méthode

public AuthenticateAsync ( string username, string password ) : Task
username string
password string
Résultat Task

ChangeFriendDisplayName() public méthode

public ChangeFriendDisplayName ( string friendUsername, string newDisplayName ) : Response
friendUsername string
newDisplayName string
Résultat Response

ChangeFriendDisplayNameAsync() public méthode

public ChangeFriendDisplayNameAsync ( string friendUsername, string newDisplayName ) : Task
friendUsername string
newDisplayName string
Résultat Task

ClearFeed() public méthode

public ClearFeed ( ) : bool
Résultat bool

ClearFeedAsync() public méthode

public ClearFeedAsync ( ) : Task
Résultat Task

Endpoints() public méthode

public Endpoints ( SnapChatManager snapchatManager ) : System
snapchatManager SnapChatManager
Résultat System

FindFriends() public méthode

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.
Résultat SnapDotNet.Core.Snapchat.Models.FoundFriend

FindFriendsAsync() public méthode

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.
Résultat Task

GetCaptchaImages() public méthode

public GetCaptchaImages ( string email, string authToken ) : Captcha
email string
authToken string
Résultat SnapDotNet.Core.Snapchat.Models.Captcha

GetCaptchaImagesAsync() public méthode

public GetCaptchaImagesAsync ( string email, string authToken ) : Task
email string
authToken string
Résultat Task

GetPublicActivity() public méthode

public GetPublicActivity ( string requestedUsernames = null ) : PublicActivity>.ObservableDictionary
requestedUsernames string
Résultat PublicActivity>.ObservableDictionary

GetPublicActivityAsync() public méthode

public GetPublicActivityAsync ( string requestedUsernames = null ) : PublicActivity>>.Task
requestedUsernames string
Résultat PublicActivity>>.Task

GetSnapBlobAsync() public méthode

public GetSnapBlobAsync ( string snapId ) : Task
snapId string
Résultat Task

GetStories() public méthode

public GetStories ( ) : Stories
Résultat Stories

GetStoriesAsync() public méthode

public GetStoriesAsync ( ) : Task
Résultat Task

GetStoryBlob() public méthode

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

GetStoryMediaBlob() public méthode

public GetStoryMediaBlob ( Story storyInstance ) : byte[]
storyInstance Story
Résultat byte[]

GetStoryThumbnailBlob() public méthode

public GetStoryThumbnailBlob ( Story storyInstance ) : byte[]
storyInstance Story
Résultat byte[]

GetUpdates() public méthode

public GetUpdates ( ) : Account
Résultat SnapDotNet.Core.Snapchat.Models.Account

GetUpdatesAsync() public méthode

public GetUpdatesAsync ( ) : Task
Résultat Task

Logout() public méthode

public Logout ( ) : Response
Résultat Response

LogoutAsync() public méthode

public LogoutAsync ( ) : Task
Résultat Task

Register() public méthode

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

RegisterAndGetCaptcha() public méthode

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

RegisterAndGetCaptchaAsync() public méthode

public RegisterAndGetCaptchaAsync ( int age, string birthday, string email, string password ) : Task
age int
birthday string
email string
password string
Résultat Task

RegisterAsync() public méthode

public RegisterAsync ( int age, string birthday, string email, string password ) : Task
age int
birthday string
email string
password string
Résultat Task

RegisterUsername() public méthode

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

RegisterUsernameAsync() public méthode

public RegisterUsernameAsync ( string email, string authToken, string requestedUsername ) : Task
email string
authToken string
requestedUsername string
Résultat Task

SendFriendAction() public méthode

public SendFriendAction ( string friendUsername, FriendAction action ) : Response
friendUsername string
action FriendAction
Résultat Response

SendFriendActionAsync() public méthode

public SendFriendActionAsync ( string friendUsername, FriendAction action ) : Task
friendUsername string
action FriendAction
Résultat Task

SendSnapViewedEvent() public méthode

public SendSnapViewedEvent ( string snapId, int timeViewed, int captureTime ) : bool
snapId string
timeViewed int
captureTime int
Résultat bool

SendSnapViewedEventAsync() public méthode

public SendSnapViewedEventAsync ( string snapId, int timeViewed, int captureTime ) : Task
snapId string
timeViewed int
captureTime int
Résultat Task

SendStoryViewedEvent() public méthode

public SendStoryViewedEvent ( string storyId, int screenshotCount ) : bool
storyId string
screenshotCount int
Résultat bool

SendStoryViewedEventAsync() public méthode

public SendStoryViewedEventAsync ( string storyId, int screenshotCount ) : Task
storyId string
screenshotCount int
Résultat Task

SetBestFriendCount() public méthode

public SetBestFriendCount ( int numberOfBestFriends ) : BestFriends
numberOfBestFriends int
Résultat SnapDotNet.Core.Snapchat.Models.BestFriends

SetBestFriendCountAsync() public méthode

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

SolveCaptcha() public méthode

public SolveCaptcha ( string email, string captchaId, string authToken, bool captchaImagesWithGhosts ) : bool
email string
captchaId string
authToken string
captchaImagesWithGhosts bool
Résultat bool

SolveCaptchaAsync() public méthode

public SolveCaptchaAsync ( string email, string captchaId, string authToken, bool captchaImagesWithGhosts ) : Task
email string
captchaId string
authToken string
captchaImagesWithGhosts bool
Résultat Task

UpdateAccountPrivacy() public méthode

public UpdateAccountPrivacy ( bool isPrivate ) : bool
isPrivate bool
Résultat bool

UpdateAccountPrivacyAsync() public méthode

public UpdateAccountPrivacyAsync ( bool isPrivate ) : Task
isPrivate bool
Résultat Task

UpdateBirthday() public méthode

public UpdateBirthday ( int birthMonth, int birthDay ) : bool
birthMonth int
birthDay int
Résultat bool

UpdateBirthdayAsync() public méthode

public UpdateBirthdayAsync ( int birthMonth, int birthDay ) : Task
birthMonth int
birthDay int
Résultat Task

UpdateEmail() public méthode

public UpdateEmail ( string email ) : bool
email string
Résultat bool

UpdateEmailAsync() public méthode

public UpdateEmailAsync ( string email ) : Task
email string
Résultat Task

UpdateFeatureSettings() public méthode

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
Résultat bool

UpdateFeatureSettingsAsync() public méthode

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
Résultat Task

UpdateMaturitySettings() public méthode

public UpdateMaturitySettings ( bool canViewMatureContent ) : bool
canViewMatureContent bool
Résultat bool

UpdateMaturitySettingsAsync() public méthode

public UpdateMaturitySettingsAsync ( bool canViewMatureContent ) : Task
canViewMatureContent bool
Résultat Task

UpdateSetting() public méthode

public UpdateSetting ( string actionName, string>.Dictionary extraPostData = null ) : bool
actionName string
extraPostData string>.Dictionary
Résultat bool

UpdateStoryPrivacy() public méthode

public UpdateStoryPrivacy ( bool friendsOnly, List friendsToBlock = null ) : bool
friendsOnly bool
friendsToBlock List
Résultat bool

UpdateStoryPrivacyAsync() public méthode

public UpdateStoryPrivacyAsync ( bool friendsOnly, List friendsToBlock = null ) : Task
friendsOnly bool
friendsToBlock List
Résultat Task