From bfd7f83533e6b6a73d8b3f324c0d665b8c801bfb Mon Sep 17 00:00:00 2001 From: Grant Winney Date: Mon, 19 Feb 2018 15:28:13 -0500 Subject: [PATCH] remove todo statements, moved to issues --- GhostSharp/GhostAPI.cs | 2 -- GhostSharp/GhostAPIGet.cs | 2 -- GhostSharp/GhostAPIPost.cs | 6 +----- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/GhostSharp/GhostAPI.cs b/GhostSharp/GhostAPI.cs index 4a2dc00..deabe9f 100644 --- a/GhostSharp/GhostAPI.cs +++ b/GhostSharp/GhostAPI.cs @@ -135,8 +135,6 @@ public AuthToken GetAuthToken(string clientId, string clientSecret, string usern return Execute(request); } - // todo: Add the ability to refresh token? reuse above call? - /// /// If there's an auth token available, attach it to the request. /// Otherwise, attach the client id and secret. diff --git a/GhostSharp/GhostAPIGet.cs b/GhostSharp/GhostAPIGet.cs index f2cdb1f..a15ec7b 100644 --- a/GhostSharp/GhostAPIGet.cs +++ b/GhostSharp/GhostAPIGet.cs @@ -84,8 +84,6 @@ public TagResponse GetTags(TagQueryParams queryParams = null) /// count.posts (I have no idea what this is for; not documented) public Tag GetTagById(string id, TagQueryParams queryParams = null) { - // todo: need to support count.posts, which returns a count of posts with the tag (https://api.ghost.org/docs/tag) - var request = new RestRequest($"tags/{id}", Method.GET); AppendSecurity(request); diff --git a/GhostSharp/GhostAPIPost.cs b/GhostSharp/GhostAPIPost.cs index 3bf917c..15f38ef 100644 --- a/GhostSharp/GhostAPIPost.cs +++ b/GhostSharp/GhostAPIPost.cs @@ -19,11 +19,7 @@ public partial class GhostAPI /// /// The post to create. public Post CreatePost(Post post) - { - // todo: support multiple posts at once? - - // todo: create interfaces for everything - + { var request = new RestRequest("posts", Method.POST); AppendSecurity(request);