Exemplo n.º 1
0
        public async Task get_blog_authors()
        {
            var args = new GetBlogAuthorsArgs
            {
                BlogAccount = User.Login
            };
            var resp = await Api.GetBlogAuthorsAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Exemplo n.º 2
0
        public void get_blog_authors()
        {
            var args = new GetBlogAuthorsArgs()
            {
                BlogAccount = User.Login
            };
            var resp = Api.GetBlogAuthors(args, CancellationToken.None);

            WriteLine(resp);
            Assert.IsFalse(resp.IsError);

            var obj = Api.CustomGetRequest <JObject>(KnownApiNames.FollowApi, "get_blog_authors", args, CancellationToken.None);

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
        /**
         * Gets a list of authors that have had their content reblogged on a given blog account
         */

        /// <summary>
        /// API name: get_blog_authors
        ///
        /// </summary>
        /// <param name="args">API type: get_blog_authors_args</param>
        /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
        /// <returns>API type: get_blog_authors_return</returns>
        /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
        public JsonRpcResponse <GetBlogAuthorsReturn> GetBlogAuthors(GetBlogAuthorsArgs args, CancellationToken token)
        {
            return(CustomGetRequest <GetBlogAuthorsReturn>(KnownApiNames.FollowApi, "get_blog_authors", args, token));
        }