예제 #1
0
파일: Favorites.cs 프로젝트: rhenium/Liegen
        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>();
        }
예제 #2
0
        public static IObservable<ApiResponse<User>> FriendshipsCreate(
            AccessToken info,
            string screenName = null,
            long? userId = null,
            bool? follow = null)
        {
            var param = new ParameterCollection()
            {
                {"screen_name", screenName},
                {"user_id", userId},
                {"follow", follow}
            };

            return info
                .GetClient()
                .SetEndpoint(Endpoints.FriendshipsCreate, HttpMethod.Post)
                .SetParameters(param)
                .GetResponse()
                .ReadResponse<User>();
        }
예제 #3
0
        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>();
        }
예제 #4
0
        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>();
        }
예제 #5
0
파일: Users.cs 프로젝트: rhenium/Liegen
        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>();
        }
예제 #6
0
파일: Users.cs 프로젝트: rhenium/Liegen
        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>();
        }
예제 #7
0
파일: Users.cs 프로젝트: rhenium/Liegen
        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>();
        }
예제 #8
0
파일: Users.cs 프로젝트: rhenium/Liegen
        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>();
        }