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

Commit

Permalink
Change -U to -u in cURL Examples (#805)
Browse files Browse the repository at this point in the history
`-U` is for proxy-user which causes no auth header to be sent
  • Loading branch information
ajrice6713 authored Nov 1, 2022
1 parent ffc79c1 commit cab8945
Show file tree
Hide file tree
Showing 23 changed files with 85 additions and 85 deletions.
4 changes: 2 additions & 2 deletions site/docs/account/sipRegistrar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This guide walks through the initial setup for Bandwidth's Registrar. The Regist
## Steps {#steps}
1. [Create A Realm](#create-realm)
1. [Create SIP Credentials](#create-sip-credentials)
1. [Register Device](#register-sip-device)
1. [Register Device](#register-sip-device)
1. [Create call via Voice API](#create-call)

### Using the UI {#using-the-ui}
Expand Down Expand Up @@ -236,7 +236,7 @@ Using your newly created Realm and Sip Credential, make a call using the Bandwid
```bash
curl 'https://voice.bandwidth.com/api/v2/accounts/{BW_ACCOUNT_ID}/calls' \
-X POST \
-U '{BANDWIDTH_USERNAME}:{BANDWIDTH:PASSWORD}' \
-u '{BANDWIDTH_USERNAME}:{BANDWIDTH:PASSWORD}' \
-H 'Content-Type: application/json' \
-d '{
"from": "{BW_NUMBER}",
Expand Down
6 changes: 3 additions & 3 deletions site/docs/numbers/hostingNumbers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ values={[

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

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

```curl
curl -X POST 'https://dashboard.bandwidth.com/api/accounts/{accountId}/importTnOrders/{orderId}/loas'
-U '{userName}:{password}'
-u '{userName}:{password}'
-H 'Content-Type: application/pdf'
-H 'Accept-Encoding: gzip, deflate'
-H 'Accept: /'
Expand Down
8 changes: 4 additions & 4 deletions site/docs/numbers/lookupNumbers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ values={[

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

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

```cURL
curl 'https://numbers.bandwidth.com/api/v1/accounts/{accountId}/tnlookup/{requestId}'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
</TabItem>
</Tabs>
Expand Down Expand Up @@ -372,4 +372,4 @@ Content-Type: application/json

## Where to next?
Now that you have learned how to lookup information for phone numbers, check out some of the other available actions in our guides:
- [How to order numbers](/docs/numbers/guides/searchingForNumbers)
- [How to order numbers](/docs/numbers/guides/searchingForNumbers)
14 changes: 7 additions & 7 deletions site/docs/numbers/manage-inventory/applyTnOptionsAndFeatures.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ values={[

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

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

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

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

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

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

```curl
curl -X POST 'https://dashboard.bandwidth.com/api/accounts/{accountId}/lidbs'
-U '{userName}:{password}'
-u '{userName}:{password}'
-H 'Content-Type: application/xml'
-d '<DldaOrder>
<CustomerOrderId>[String]</CustomerOrderId>
Expand Down
40 changes: 20 additions & 20 deletions site/docs/numbers/manage-inventory/searchingNumbers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
> Response
Expand Down Expand Up @@ -156,7 +156,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns?accountId=9900008'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
> Response
Expand Down Expand Up @@ -212,7 +212,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns?city=CARY'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
> Response
Expand Down Expand Up @@ -282,7 +282,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns?fullnumber=2012381139'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
> Response
Expand Down Expand Up @@ -338,7 +338,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns?npa=201'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
> Response
Expand Down Expand Up @@ -393,7 +393,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns?npaNxx=201238'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
> Response
Expand Down Expand Up @@ -448,7 +448,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns?npaNxxX=2012381'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
> Response
Expand Down Expand Up @@ -503,7 +503,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns?rateCenter=CARY'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
> Response
Expand Down Expand Up @@ -572,7 +572,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns?state=NC'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
> Response
Expand Down Expand Up @@ -641,7 +641,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns?tier=1'
-U '{userName}:{password}'
-u '{userName}:{password}'
```
> Response
Expand Down Expand Up @@ -713,7 +713,7 @@ values={[

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

```curl
curl 'https://dashboard.bandwidth.com/api/tns/{tn}'
-U '{userName}:{password}'
-u '{userName}:{password}'
```

> Response
Expand Down Expand Up @@ -856,7 +856,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/tnDetails'
-U '{userName}:{password}'
-u '{userName}:{password}'
```

> Response
Expand Down Expand Up @@ -927,7 +927,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/sites'
-U '{userName}:{password}'
-u '{userName}:{password}'
```

> Response
Expand Down Expand Up @@ -965,7 +965,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/sippeers'
-U '{userName}:{password}'
-u '{userName}:{password}'
```

> Response
Expand Down Expand Up @@ -1003,7 +1003,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/ratecenter'
-U '{userName}:{password}'
-u '{userName}:{password}'
```

> Response
Expand Down Expand Up @@ -1043,7 +1043,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/lca'
-U '{userName}:{password}'
-u '{userName}:{password}'
```

> Response
Expand Down Expand Up @@ -1100,7 +1100,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/lata'
-U '{userName}:{password}'
-u '{userName}:{password}'
```

> Response
Expand Down Expand Up @@ -1139,7 +1139,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/tnreservation'
-U '{userName}:{password}'
-u '{userName}:{password}'
```

> Response
Expand Down Expand Up @@ -1179,7 +1179,7 @@ values={[

```curl
curl 'https://dashboard.bandwidth.com/api/tns/{tn}/availableNnRoutes'
-U '{userName}:{password}'
-u '{userName}:{password}'
```

> Response
Expand Down
4 changes: 2 additions & 2 deletions site/docs/numbers/manage-inventory/setFailoverUri.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ values={[

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

```curl
curl -X PUT 'https://dashboard.bandwidth.com/api/accounts/{accountId}/sites/{siteId}/sippeers/{sippeerId}/tns/{tn}'
-U '{userName}:{password}'
-u '{userName}:{password}'
-H 'Content-Type: application/xml'
-d '<TnOptionOrder>
<TnOptionGroups>
Expand Down
4 changes: 2 additions & 2 deletions site/docs/numbers/porting/createBulkPortins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Note: Remember to add authentication for your application if needed!

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

curl 'https://dashboard.bandwidth.com/api/accounts/{accountId}/bulkPortins/{orderId}/tnList' \
-X POST \
-U '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
-u '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
-H 'Content-Type: application/xml' \
-d '<TnList>
<TN>[telephone number]</TN>
Expand Down
2 changes: 1 addition & 1 deletion site/docs/numbers/porting/lnpChecker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Note: Remember to add authentication for your application if needed!

curl 'https://dashboard.bandwidth.com/api/accounts/{accountId}/lnpChecker?fullcheck=true' \
-X POST \
-U '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
-u '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
-H 'Content-Type: application/xml' \
-d '<NumberPortabilityRequest>
<TnList>
Expand Down
2 changes: 1 addition & 1 deletion site/docs/numbers/porting/loaUpload.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ To manage your LOA files use our APIs like [/portins/{orderid}/loas/{fileId}](/a
```xml
curl 'https://dashboard.bandwidth.com/api/accounts/{accountId}/portins/{orderId}/loas/{fileId}/metadata' \
-X PUT \
-U '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
-u '{BANDWIDTH_USERNAME}:{BANDWIDTH_PASSWORD}' \
-H 'Content-Type: application/xml' \
-d '<FileMetaData>
<DocumentName> [string] </DocumentName>
Expand Down
Loading

0 comments on commit cab8945

Please sign in to comment.