public static IObservable<ApiResponse<User>> FriendshipsDestroy( AccessToken info, string screenName = null, long? userId = null) { var param = new ParameterCollection() { {"screen_name", screenName}, {"user_id", userId} }; return info .GetClient() .SetEndpoint(Endpoints.FriendshipsDestroy, HttpMethod.Post) .SetParameters(param) .GetResponse() .ReadResponse<User>(); }
public static IObservable<ApiResponse<Status>> FavoritesDestroy( AccessToken info, long id, bool? includeEntities = null) { var param = new ParameterCollection() { {"id", id}, {"include_entities", includeEntities} }; return info .GetClient() .SetEndpoint(Endpoints.FavoritesDestroy, HttpMethod.Post) .SetParameters(param) .GetResponse() .ReadResponse<Status>(); }
public static IObservable<ApiResponse<CursorIds>> FollowersIds( AccessToken info, long? userId = null, string screenName = null, long? cursor = null, int? count = null) { var param = new ParameterCollection() { {"user_id", userId}, {"screen_name", screenName}, {"cursor", cursor}, {"count", count} }; return info .GetClient() .SetEndpoint(Endpoints.FollowersIds) .SetParameters(param) .GetResponse() .ReadResponse<CursorIds>(); }
public static IObservable<ApiResponse<CursorUsers>> FollowersList( AccessToken info, long? userId = null, string screenName = null, long? cursor = null, bool? skipStatus = null, bool? includeUserEntities = null) { var param = new ParameterCollection() { {"user_id", userId}, {"screen_name", screenName}, {"cursor", cursor}, {"skip_status", skipStatus}, {"include_user_entities", includeUserEntities} }; return info .GetClient() .SetEndpoint(Endpoints.FollowersList) .SetParameters(param) .GetResponse() .ReadResponse<CursorUsers>(); }
public static IObservable<ApiResponse<User>> UsersShow( AccessToken info, string userId = null, string screenName = null, bool? includeEntities = null) { var param = new ParameterCollection() { {"user_id", userId}, {"screen_name", screenName}, {"include_entities", includeEntities} }; return info .GetClient() .SetEndpoint(Endpoints.UsersShow) .SetParameters(param) .GetResponse() .ReadResponse<User>(); }
public static IObservable<ApiResponse<CursorUsers>> BlocksList( AccessToken info, bool? includeEntities = null, bool? skipStatus = null, long? cursor = null) { var param = new ParameterCollection() { {"include_entities", includeEntities}, {"skip_status", skipStatus}, {"cursor", cursor} }; return info .GetClient() .SetEndpoint(Endpoints.BlocksList) .SetParameters(param) .GetResponse() .ReadResponse<CursorUsers>(); }
public static IObservable<ApiResponse<CursorIds>> BlocksIds( AccessToken info, long? cursor = null) { var param = new ParameterCollection() { {"cursor", cursor} }; return info .GetClient() .SetEndpoint(Endpoints.BlocksIds) .SetParameters(param) .GetResponse() .ReadResponse<CursorIds>(); }
public static IObservable<ApiResponse<User>> BlocksDestroy( AccessToken info, string screenName = null, long? userId = null, bool? includeEntities = null, bool? skipStatus = null) { var param = new ParameterCollection() { {"screen_name", screenName}, {"user_id", userId}, {"include_entities", includeEntities}, {"skip_status", skipStatus} }; return info .GetClient() .SetEndpoint(Endpoints.BlocksDestroy, HttpMethod.Post) .SetParameters(param) .GetResponse() .ReadResponse<User>(); }