Skip to content

Commit c5a1379

Browse files
Merge pull request #61 from rmcintosh/no-token
Fix remaining references to "token" keyword in auth headers
2 parents 88bf061 + 740c017 commit c5a1379

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/data/endpoints/volumes.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ endpoints:
5656
examples:
5757
curl: |
5858
curl -H "Content-Type: application/json" \
59-
-H "Authorization: token $TOKEN" \
59+
-H "Authorization: Bearer $TOKEN" \
6060
-X POST -d '{
6161
"label": "a_fancy_new_volume",
6262
"region": "us-east-1a",
@@ -132,7 +132,7 @@ endpoints:
132132
examples:
133133
curl: |
134134
curl -H "Content-Type: application/json" \
135-
-H "Authorization: token $TOKEN" \
135+
-H "Authorization: Bearer $TOKEN" \
136136
-X POST -d '{
137137
"label": "a_fancy_new_volume",
138138
"region": "us-east-1a",
@@ -192,7 +192,7 @@ endpoints:
192192
examples:
193193
curl: |
194194
curl -H "Content-Type: application/json" \
195-
-H "Authorization: token $TOKEN" \
195+
-H "Authorization: Bearer $TOKEN" \
196196
-X POST -d '{
197197
"linode_id": 1234
198198
}'
@@ -236,7 +236,7 @@ endpoints:
236236
examples:
237237
curl: |
238238
curl -H "Content-Type: application/json" \
239-
-H "Authorization: token $TOKEN" \
239+
-H "Authorization: Bearer $TOKEN" \
240240
-X POST -d '{
241241
"size": 2000
242242
}'

src/getting_started/guides/curl/TestingWithCurl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default function Introduction(props) {
105105
requests on the reference page include this header in the curl examples. For example:
106106
</p>
107107
<Code
108-
example={`curl -H "Authorization: token $token" \\
108+
example={`curl -H "Authorization: Bearer $token" \\
109109
${API_ROOT}/${API_VERSION}/linode/instances`}
110110
name="bash"
111111
/>

0 commit comments

Comments
 (0)