Example #1
0
        public Task<Status> Get(Action<StatusTarget> status, CancellationToken cancellationToken = default(CancellationToken))
        {
            var statusTargetImpl = new StatusTargetImpl();
            status(statusTargetImpl);

            string url = string.Format("/api/v1/statuses/{0}", statusTargetImpl.Target);
            return base.Get(url, cancellationToken).As<Status>(cancellationToken);
        }
Example #2
0
        public Task<Status> Delete(Action<StatusTarget> status, CancellationToken cancellationToken = default(CancellationToken))
        {
            var statusTargetImpl = new StatusTargetImpl();
            status(statusTargetImpl);

            string url = ("/api/v1/statuses");

            return base.Post(url, cancellationToken).As<Status>(cancellationToken);
        }