C# Class ChatterService.ChatterRestService

Show file Open project: CTSIatUCSF/gadgets Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

ChatterRestService() public method

public ChatterRestService ( string url, bool logService ) : System
url string
logService bool
return System

Follow() public method

public Follow ( string viewerId, string ownerId ) : ChatterResponse
viewerId string
ownerId string
return ChatterResponse

GetAccessToken() public method

public GetAccessToken ( ) : string
return string

GetFollowers() public method

public GetFollowers ( string userId ) : ChatterResponse
userId string
return ChatterResponse

GetFollowing() public method

public GetFollowing ( string userId ) : ChatterResponse
userId string
return ChatterResponse

GetNextPage() public method

public GetNextPage ( ChatterResponse resp ) : ChatterResponse
resp ChatterResponse
return ChatterResponse

GetPreviousPage() public method

public GetPreviousPage ( ChatterResponse resp ) : ChatterResponse
resp ChatterResponse
return ChatterResponse

Login() public method

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
return string

Unfollow() public method

public Unfollow ( string viewerId, string ownerId ) : ChatterResponse
viewerId string
ownerId string
return ChatterResponse