Exemple #1
0
        public async Task get_reblogged_by()
        {
            var args = new GetRebloggedByArgs
            {
                Author   = "steepshot",
                Permlink = "finally-arrived-steepshot-goes-to-beta-meet-the-updated-open-source-android-app"
            };
            var resp = await Api.GetRebloggedByAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Exemple #2
0
        public void get_reblogged_by()
        {
            var args = new GetRebloggedByArgs()
            {
                Author   = "steepshot",
                Permlink = "finally-arrived-steepshot-goes-to-beta-meet-the-updated-open-source-android-app"
            };
            var resp = Api.GetRebloggedBy(args, CancellationToken.None);

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

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

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
        /**
         * Gets list of accounts that have reblogged a particular post
         */

        /// <summary>
        /// API name: get_reblogged_by
        ///
        /// </summary>
        /// <param name="args">API type: get_reblogged_by_args</param>
        /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
        /// <returns>API type: get_reblogged_by_return</returns>
        /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
        public JsonRpcResponse <GetRebloggedByReturn> GetRebloggedBy(GetRebloggedByArgs args, CancellationToken token)
        {
            return(CustomGetRequest <GetRebloggedByReturn>(KnownApiNames.FollowApi, "get_reblogged_by", args, token));
        }