# API Requests
## Get
#### Curl
`-H` `=>` `Header`
`-H "X-Auth-Token: $token"` authentication type is `token`, `$token` => token variable
`-k` `=>` skip `SSL` Verify
`-X` `=>`HTTP Verb (`GET` is the default); [`GET`, `PUT`, `POST`,`DELETE`]
```bash=
curl -i -k -X GET -H "X-Auth-Token: $token" \
-H "Content-Type: application/json" \
https://iam.eu-west-0.cloud-ocb.orange-business.com/v1/eb66b47a207a410381b2e66c5afdc383/vpcs
```
* You can use https://curl.trillworks.com/ to convert `curl` to `python`
#### Python
* Equivalent to normal `Curl` `GET` Request

```python=
headers = {
'X-Auth-Token': token,
'Content-Type': 'application/json',
}
response = requests.get(
"https://iam.eu-west-0.cloud-ocb.orange-business.com/v1/" + project_id + "/vpcs", headers=headers,
verify=False)
```
---
* With `Json` Parsing

```python=
headers = {
'X-Auth-Token': token,
'Content-Type': 'application/json',
}
response = requests.get(
"https://iam.eu-west-0.cloud-ocb.orange-business.com/v1/" + project_id + "/vpcs", headers=headers,
verify=False)
body_json = json.loads(response.text)
arr_of_dicts = list(body_json.values())[0]
data = {
"status_code": response.status_code,
"body": arr_of_dicts
}
return data
```