Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit cab8945

Browse files
authored
Change -U to -u in cURL Examples (#805)
`-U` is for proxy-user which causes no auth header to be sent
1 parent ffc79c1 commit cab8945

23 files changed

+85
-85
lines changed

site/docs/account/sipRegistrar.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This guide walks through the initial setup for Bandwidth's Registrar. The Regist
3737
## Steps {#steps}
3838
1. [Create A Realm](#create-realm)
3939
1. [Create SIP Credentials](#create-sip-credentials)
40-
1. [Register Device](#register-sip-device)
40+
1. [Register Device](#register-sip-device)
4141
1. [Create call via Voice API](#create-call)
4242

4343
### Using the UI {#using-the-ui}
@@ -236,7 +236,7 @@ Using your newly created Realm and Sip Credential, make a call using the Bandwid
236236
```bash
237237
curl 'https://voice.bandwidth.com/api/v2/accounts/{BW_ACCOUNT_ID}/calls' \
238238
-X POST \
239-
-U '{BANDWIDTH_USERNAME}:{BANDWIDTH:PASSWORD}' \
239+
-u '{BANDWIDTH_USERNAME}:{BANDWIDTH:PASSWORD}' \
240240
-H 'Content-Type: application/json' \
241241
-d '{
242242
"from": "{BW_NUMBER}",

site/docs/numbers/hostingNumbers.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ values={[
8383

8484
```curl
8585
curl -X POST 'https://dashboard.bandwidth.com/api/accounts/{accountId}/importTnChecker'
86-
-U '{userName}:{password}'
86+
-u '{userName}:{password}'
8787
-H 'Content-Type: application/xml'
8888
-d '<ImportTnCheckerPayload>
8989
<TelephoneNumbers>
@@ -175,7 +175,7 @@ values={[
175175

176176
```curl
177177
curl -X POST 'https://dashboard.bandwidth.com/api/accounts/{accountId}/importTnOrders'
178-
-U '{userName}:{password}'
178+
-u '{userName}:{password}'
179179
-H 'Content-Type: application/xml'
180180
-d '<ImportTnOrder>
181181
<CustomerOrderId>marktestorders</CustomerOrderId>
@@ -277,7 +277,7 @@ values={[
277277

278278
```curl
279279
curl -X POST 'https://dashboard.bandwidth.com/api/accounts/{accountId}/importTnOrders/{orderId}/loas'
280-
-U '{userName}:{password}'
280+
-u '{userName}:{password}'
281281
-H 'Content-Type: application/pdf'
282282
-H 'Accept-Encoding: gzip, deflate'
283283
-H 'Accept: /'

site/docs/numbers/lookupNumbers.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ values={[
7777

7878
```cURL
7979
curl -X POST 'https://numbers.bandwidth.com/api/v1/accounts/{accountId}/tnlookup'
80-
-U '{userName}:{password}'
80+
-u '{userName}:{password}'
8181
-H 'Content-Type: application/json'
8282
-d '{
8383
"tns": [
@@ -134,7 +134,7 @@ values={[
134134

135135
```cURL
136136
curl -X POST 'https://numbers.bandwidth.com/api/v1/accounts/{accountId}/tnlookup'
137-
-U '{userName}:{password}'
137+
-u '{userName}:{password}'
138138
-H 'Content-Type: application/json'
139139
-d '{
140140
"tns": [
@@ -187,7 +187,7 @@ values={[
187187

188188
```cURL
189189
curl 'https://numbers.bandwidth.com/api/v1/accounts/{accountId}/tnlookup/{requestId}'
190-
-U '{userName}:{password}'
190+
-u '{userName}:{password}'
191191
```
192192
</TabItem>
193193
</Tabs>
@@ -372,4 +372,4 @@ Content-Type: application/json
372372

373373
## Where to next?
374374
Now that you have learned how to lookup information for phone numbers, check out some of the other available actions in our guides:
375-
- [How to order numbers](/docs/numbers/guides/searchingForNumbers)
375+
- [How to order numbers](/docs/numbers/guides/searchingForNumbers)

site/docs/numbers/manage-inventory/applyTnOptionsAndFeatures.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ values={[
103103

104104
```curl
105105
curl -X PUT 'https://dashboard.bandwidth.com/api/accounts/{accountId}/sites/{siteId}/sippeers/{sippeerId}/tns/{tn}'
106-
-U '{userName}:{password}'
106+
-u '{userName}:{password}'
107107
-H 'Content-Type: application/xml'
108108
-d '<SipPeerTelephoneNumber>
109109
<FullNumber>2052160156</FullNumber>
@@ -172,7 +172,7 @@ values={[
172172

173173
```curl
174174
curl -X PUT 'https://dashboard.bandwidth.com/api/accounts/{accountId}/sites/{siteId}/sippeers/{sippeerId}/tns/{tn}'
175-
-U '{userName}:{password}'
175+
-u '{userName}:{password}'
176176
-H 'Content-Type: application/xml'
177177
-d '<SipPeerTelephoneNumber>
178178
<FullNumber>2052160156</FullNumber>
@@ -243,7 +243,7 @@ values={[
243243

244244
```curl
245245
curl -X PUT 'https://dashboard.bandwidth.com/api/accounts/{accountId}/sites/{siteId}/sippeers/{sippeerId}/tns/{tn}'
246-
-U '{userName}:{password}'
246+
-u '{userName}:{password}'
247247
-H 'Content-Type: application/xml'
248248
-d '<SipPeerTelephoneNumber>
249249
<FullNumber>2052160156</FullNumber>
@@ -314,7 +314,7 @@ values={[
314314

315315
```curl
316316
curl -X PUT 'https://dashboard.bandwidth.com/api/accounts/{accountId}/sites/{siteId}/sippeers/{sippeerId}/tns/{tn}'
317-
-U '{userName}:{password}'
317+
-u '{userName}:{password}'
318318
-H 'Content-Type: application/xml'
319319
-d '<SipPeerTelephoneNumber>
320320
<FullNumber>2052160156</FullNumber>
@@ -405,7 +405,7 @@ values={[
405405

406406
```curl
407407
curl -X POST 'https://dashboard.bandwidth.com/api/accounts/{accountId}/tnOptions'
408-
-U '{userName}:{password}'
408+
-u '{userName}:{password}'
409409
-H 'Content-Type: application/xml'
410410
-d '<TnOptionOrder>
411411
<CustomerOrderId>TnOptionOrder1</CustomerOrderId>
@@ -521,7 +521,7 @@ values={[
521521

522522
```curl
523523
curl -X POST 'https://dashboard.bandwidth.com/api/accounts/{accountId}/lidbs'
524-
-U '{userName}:{password}'
524+
-u '{userName}:{password}'
525525
-H 'Content-Type: application/xml'
526526
-d '<LidbOrder>
527527
<CustomerOrderId>[String]</CustomerOrderId>
@@ -665,7 +665,7 @@ values={[
665665

666666
```curl
667667
curl -X POST 'https://dashboard.bandwidth.com/api/accounts/{accountId}/lidbs'
668-
-U '{userName}:{password}'
668+
-u '{userName}:{password}'
669669
-H 'Content-Type: application/xml'
670670
-d '<DldaOrder>
671671
<CustomerOrderId>[String]</CustomerOrderId>

site/docs/numbers/manage-inventory/searchingNumbers.mdx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ values={[
8585

8686
```curl
8787
curl 'https://dashboard.bandwidth.com/api/tns'
88-
-U '{userName}:{password}'
88+
-u '{userName}:{password}'
8989
```
9090
> Response
9191
@@ -156,7 +156,7 @@ values={[
156156

157157
```curl
158158
curl 'https://dashboard.bandwidth.com/api/tns?accountId=9900008'
159-
-U '{userName}:{password}'
159+
-u '{userName}:{password}'
160160
```
161161
> Response
162162
@@ -212,7 +212,7 @@ values={[
212212

213213
```curl
214214
curl 'https://dashboard.bandwidth.com/api/tns?city=CARY'
215-
-U '{userName}:{password}'
215+
-u '{userName}:{password}'
216216
```
217217
> Response
218218
@@ -282,7 +282,7 @@ values={[
282282

283283
```curl
284284
curl 'https://dashboard.bandwidth.com/api/tns?fullnumber=2012381139'
285-
-U '{userName}:{password}'
285+
-u '{userName}:{password}'
286286
```
287287
> Response
288288
@@ -338,7 +338,7 @@ values={[
338338

339339
```curl
340340
curl 'https://dashboard.bandwidth.com/api/tns?npa=201'
341-
-U '{userName}:{password}'
341+
-u '{userName}:{password}'
342342
```
343343
> Response
344344
@@ -393,7 +393,7 @@ values={[
393393

394394
```curl
395395
curl 'https://dashboard.bandwidth.com/api/tns?npaNxx=201238'
396-
-U '{userName}:{password}'
396+
-u '{userName}:{password}'
397397
```
398398
> Response
399399
@@ -448,7 +448,7 @@ values={[
448448

449449
```curl
450450
curl 'https://dashboard.bandwidth.com/api/tns?npaNxxX=2012381'
451-
-U '{userName}:{password}'
451+
-u '{userName}:{password}'
452452
```
453453
> Response
454454
@@ -503,7 +503,7 @@ values={[
503503

504504
```curl
505505
curl 'https://dashboard.bandwidth.com/api/tns?rateCenter=CARY'
506-
-U '{userName}:{password}'
506+
-u '{userName}:{password}'
507507
```
508508
> Response
509509
@@ -572,7 +572,7 @@ values={[
572572

573573
```curl
574574
curl 'https://dashboard.bandwidth.com/api/tns?state=NC'
575-
-U '{userName}:{password}'
575+
-u '{userName}:{password}'
576576
```
577577
> Response
578578
@@ -641,7 +641,7 @@ values={[
641641

642642
```curl
643643
curl 'https://dashboard.bandwidth.com/api/tns?tier=1'
644-
-U '{userName}:{password}'
644+
-u '{userName}:{password}'
645645
```
646646
> Response
647647
@@ -713,7 +713,7 @@ values={[
713713

714714
```cURL
715715
curl -X POST 'https://dashboard.bandwidth.com/api/tns'
716-
-U '{userName}:{password}'
716+
-u '{userName}:{password}'
717717
-H 'Content-Type: application/xml'
718718
-d '<TnList>
719719
<Tn>3172000285</Tn>
@@ -809,7 +809,7 @@ To show general number information, make a <Highlight color="#00bf8c">GET</Highl
809809

810810
```curl
811811
curl 'https://dashboard.bandwidth.com/api/tns/{tn}'
812-
-U '{userName}:{password}'
812+
-u '{userName}:{password}'
813813
```
814814

815815
> Response
@@ -856,7 +856,7 @@ values={[
856856

857857
```curl
858858
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/tnDetails'
859-
-U '{userName}:{password}'
859+
-u '{userName}:{password}'
860860
```
861861

862862
> Response
@@ -927,7 +927,7 @@ values={[
927927

928928
```curl
929929
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/sites'
930-
-U '{userName}:{password}'
930+
-u '{userName}:{password}'
931931
```
932932

933933
> Response
@@ -965,7 +965,7 @@ values={[
965965

966966
```curl
967967
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/sippeers'
968-
-U '{userName}:{password}'
968+
-u '{userName}:{password}'
969969
```
970970

971971
> Response
@@ -1003,7 +1003,7 @@ values={[
10031003

10041004
```curl
10051005
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/ratecenter'
1006-
-U '{userName}:{password}'
1006+
-u '{userName}:{password}'
10071007
```
10081008

10091009
> Response
@@ -1043,7 +1043,7 @@ values={[
10431043

10441044
```curl
10451045
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/lca'
1046-
-U '{userName}:{password}'
1046+
-u '{userName}:{password}'
10471047
```
10481048

10491049
> Response
@@ -1100,7 +1100,7 @@ values={[
11001100

11011101
```curl
11021102
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/lata'
1103-
-U '{userName}:{password}'
1103+
-u '{userName}:{password}'
11041104
```
11051105

11061106
> Response
@@ -1139,7 +1139,7 @@ values={[
11391139

11401140
```curl
11411141
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/tnreservation'
1142-
-U '{userName}:{password}'
1142+
-u '{userName}:{password}'
11431143
```
11441144

11451145
> Response
@@ -1179,7 +1179,7 @@ values={[
11791179

11801180
```curl
11811181
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/availableNnRoutes'
1182-
-U '{userName}:{password}'
1182+
-u '{userName}:{password}'
11831183
```
11841184

11851185
> Response

site/docs/numbers/manage-inventory/setFailoverUri.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ values={[
9898

9999
```curl
100100
curl -X PUT 'https://dashboard.bandwidth.com/api/accounts/{accountId}/sites/{siteId}/sippeers/{sippeerId}/tns/{tn}'
101-
-U '{userName}:{password}'
101+
-u '{userName}:{password}'
102102
-H 'Content-Type: application/xml'
103103
-d '<SipPeer>
104104
<PeerName>location_name</PeerName>
@@ -161,7 +161,7 @@ values={[
161161

162162
```curl
163163
curl -X PUT 'https://dashboard.bandwidth.com/api/accounts/{accountId}/sites/{siteId}/sippeers/{sippeerId}/tns/{tn}'
164-
-U '{userName}:{password}'
164+
-u '{userName}:{password}'
165165
-H 'Content-Type: application/xml'
166166
-d '<TnOptionOrder>
167167
<TnOptionGroups>

site/docs/numbers/porting/createBulkPortins.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Note: Remember to add authentication for your application if needed!
9494

9595
curl 'https://dashboard.bandwidth.com/api/accounts/{BW_ACCOUNT_ID}/bulkPortins' \
9696
-X POST \
97-
-U '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
97+
-u '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
9898
-H 'Content-Type: application/xml' \
9999
-d '<BulkPortin>
100100
<CustomerOrderId>Order Id for all child orders</CustomerOrderId>
@@ -180,7 +180,7 @@ Note: Remember to add authentication for your application if needed!
180180

181181
curl 'https://dashboard.bandwidth.com/api/accounts/{accountId}/bulkPortins/{orderId}/tnList' \
182182
-X POST \
183-
-U '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
183+
-u '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
184184
-H 'Content-Type: application/xml' \
185185
-d '<TnList>
186186
<TN>[telephone number]</TN>

site/docs/numbers/porting/lnpChecker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Note: Remember to add authentication for your application if needed!
161161

162162
curl 'https://dashboard.bandwidth.com/api/accounts/{accountId}/lnpChecker?fullcheck=true' \
163163
-X POST \
164-
-U '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
164+
-u '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
165165
-H 'Content-Type: application/xml' \
166166
-d '<NumberPortabilityRequest>
167167
<TnList>

site/docs/numbers/porting/loaUpload.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ To manage your LOA files use our APIs like [/portins/{orderid}/loas/{fileId}](/a
149149
```xml
150150
curl 'https://dashboard.bandwidth.com/api/accounts/{accountId}/portins/{orderId}/loas/{fileId}/metadata' \
151151
-X PUT \
152-
-U '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
152+
-u '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
153153
-H 'Content-Type: application/xml' \
154154
-d '<FileMetaData>
155155
<DocumentName> [string] </DocumentName>

0 commit comments

Comments
 (0)