Browse Source

Update developer.write.as -> developers.write.as

Matt Baer 2 months ago
parent
commit
b35223f930
5 changed files with 11 additions and 11 deletions
  1. 1
    1
      .github/ISSUE_TEMPLATE.md
  2. 1
    1
      README.md
  3. 1
    1
      auth.go
  4. 3
    3
      collection.go
  5. 5
    5
      post.go

+ 1
- 1
.github/ISSUE_TEMPLATE.md View File

@@ -4,4 +4,4 @@
4 4
 ## Implementation
5 5
 
6 6
 
7
-[API documentation](https://developer.write.as/docs/api/?go#TODO-ENTER-SECTION-HERE).
7
+[API documentation](https://developers.write.as/docs/api/?go#TODO-ENTER-SECTION-HERE).

+ 1
- 1
README.md View File

@@ -16,7 +16,7 @@ go get go.code.as/writeas.v2
16 16
 
17 17
 ## Documentation
18 18
 
19
-See all functionality and usages in the [API documentation](https://developer.write.as/docs/api/).
19
+See all functionality and usages in the [API documentation](https://developers.write.as/docs/api/).
20 20
 
21 21
 ### Example usage
22 22
 

+ 1
- 1
auth.go View File

@@ -6,7 +6,7 @@ import (
6 6
 )
7 7
 
8 8
 // LogIn authenticates a user with Write.as.
9
-// See https://developer.write.as/docs/api/#authenticate-a-user
9
+// See https://developers.write.as/docs/api/#authenticate-a-user
10 10
 func (c *Client) LogIn(username, pass string) (*AuthUser, error) {
11 11
 	u := &AuthUser{}
12 12
 	up := struct {

+ 3
- 3
collection.go View File

@@ -34,7 +34,7 @@ type (
34 34
 
35 35
 // CreateCollection creates a new collection, returning a user-friendly error
36 36
 // if one comes up. Requires a Write.as subscription. See
37
-// https://developer.write.as/docs/api/#create-a-collection
37
+// https://developers.write.as/docs/api/#create-a-collection
38 38
 func (c *Client) CreateCollection(sp *CollectionParams) (*Collection, error) {
39 39
 	p := &Collection{}
40 40
 	env, err := c.post("/collections", sp, p)
@@ -65,7 +65,7 @@ func (c *Client) CreateCollection(sp *CollectionParams) (*Collection, error) {
65 65
 
66 66
 // GetCollection retrieves a collection, returning the Collection and any error
67 67
 // (in user-friendly form) that occurs. See
68
-// https://developer.write.as/docs/api/#retrieve-a-collection
68
+// https://developers.write.as/docs/api/#retrieve-a-collection
69 69
 func (c *Client) GetCollection(alias string) (*Collection, error) {
70 70
 	coll := &Collection{}
71 71
 	env, err := c.get(fmt.Sprintf("/collections/%s", alias), coll)
@@ -90,7 +90,7 @@ func (c *Client) GetCollection(alias string) (*Collection, error) {
90 90
 
91 91
 // GetCollectionPosts retrieves a collection's posts, returning the Posts
92 92
 // and any error (in user-friendly form) that occurs. See
93
-// https://developer.write.as/docs/api/#retrieve-collection-posts
93
+// https://developers.write.as/docs/api/#retrieve-collection-posts
94 94
 func (c *Client) GetCollectionPosts(alias string) (*[]Post, error) {
95 95
 	coll := &Collection{}
96 96
 	env, err := c.get(fmt.Sprintf("/collections/%s/posts", alias), coll)

+ 5
- 5
post.go View File

@@ -84,7 +84,7 @@ type (
84 84
 
85 85
 // GetPost retrieves a published post, returning the Post and any error (in
86 86
 // user-friendly form) that occurs. See
87
-// https://developer.write.as/docs/api/#retrieve-a-post.
87
+// https://developers.write.as/docs/api/#retrieve-a-post.
88 88
 func (c *Client) GetPost(id string) (*Post, error) {
89 89
 	p := &Post{}
90 90
 	env, err := c.get(fmt.Sprintf("/posts/%s", id), p)
@@ -109,7 +109,7 @@ func (c *Client) GetPost(id string) (*Post, error) {
109 109
 }
110 110
 
111 111
 // CreatePost publishes a new post, returning a user-friendly error if one comes
112
-// up. See https://developer.write.as/docs/api/#publish-a-post.
112
+// up. See https://developers.write.as/docs/api/#publish-a-post.
113 113
 func (c *Client) CreatePost(sp *PostParams) (*Post, error) {
114 114
 	p := &Post{}
115 115
 	endPre := ""
@@ -137,7 +137,7 @@ func (c *Client) CreatePost(sp *PostParams) (*Post, error) {
137 137
 }
138 138
 
139 139
 // UpdatePost updates a published post with the given PostParams. See
140
-// https://developer.write.as/docs/api/#update-a-post.
140
+// https://developers.write.as/docs/api/#update-a-post.
141 141
 func (c *Client) UpdatePost(id, token string, sp *PostParams) (*Post, error) {
142 142
 	return c.updatePost("", id, token, sp)
143 143
 }
@@ -176,7 +176,7 @@ func (c *Client) updatePost(collection, identifier, token string, sp *PostParams
176 176
 }
177 177
 
178 178
 // DeletePost permanently deletes a published post. See
179
-// https://developer.write.as/docs/api/#delete-a-post.
179
+// https://developers.write.as/docs/api/#delete-a-post.
180 180
 func (c *Client) DeletePost(id, token string) error {
181 181
 	return c.deletePost("", id, token)
182 182
 }
@@ -209,7 +209,7 @@ func (c *Client) deletePost(collection, identifier, token string) error {
209 209
 }
210 210
 
211 211
 // ClaimPosts associates anonymous posts with a user / account.
212
-// https://developer.write.as/docs/api/#claim-posts.
212
+// https://developers.write.as/docs/api/#claim-posts.
213 213
 func (c *Client) ClaimPosts(sp *[]OwnedPostParams) (*[]ClaimPostResult, error) {
214 214
 	p := &[]ClaimPostResult{}
215 215
 	env, err := c.post("/posts/claim", sp, p)