C# Класс ChatterService.ChatterRestService

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ChatterRestService ( string url, bool logService ) : System
Follow ( string viewerId, string ownerId ) : ChatterResponse
GetAccessToken ( ) : string
GetFollowers ( string userId ) : ChatterResponse
GetFollowing ( string userId ) : ChatterResponse
GetNextPage ( ChatterResponse resp ) : ChatterResponse
GetPreviousPage ( ChatterResponse resp ) : ChatterResponse
Login ( string client_id, string grant_type, string client_secret, string username, string password ) : string
Unfollow ( string viewerId, string ownerId ) : ChatterResponse

Приватные методы

Метод Описание
MakeRestCall ( string call, RestSharp method, string>.Dictionary postParams ) : ChatterResponse
MakeUserRestCall ( string userId, string call ) : ChatterResponse
MakeUserRestCall ( string userId, string call, RestSharp method, string>.Dictionary postParams ) : ChatterResponse
WriteLogToFile ( String msg ) : void

Описание методов

ChatterRestService() публичный Метод

public ChatterRestService ( string url, bool logService ) : System
url string
logService bool
Результат System

Follow() публичный Метод

public Follow ( string viewerId, string ownerId ) : ChatterResponse
viewerId string
ownerId string
Результат ChatterResponse

GetAccessToken() публичный Метод

public GetAccessToken ( ) : string
Результат string

GetFollowers() публичный Метод

public GetFollowers ( string userId ) : ChatterResponse
userId string
Результат ChatterResponse

GetFollowing() публичный Метод

public GetFollowing ( string userId ) : ChatterResponse
userId string
Результат ChatterResponse

GetNextPage() публичный Метод

public GetNextPage ( ChatterResponse resp ) : ChatterResponse
resp ChatterResponse
Результат ChatterResponse

GetPreviousPage() публичный Метод

public GetPreviousPage ( ChatterResponse resp ) : ChatterResponse
resp ChatterResponse
Результат ChatterResponse

Login() публичный Метод

public Login ( string client_id, string grant_type, string client_secret, string username, string password ) : string
client_id string
grant_type string
client_secret string
username string
password string
Результат string

Unfollow() публичный Метод

public Unfollow ( string viewerId, string ownerId ) : ChatterResponse
viewerId string
ownerId string
Результат ChatterResponse