How to use API Key | Bearer Token
How to API Key Or Bearer Token for API Calls
Last updated
How to API Key Or Bearer Token for API Calls
Last updated
PostMan
Code Gist
POST /api/v1/walletAddress/generate HTTP/1.1
Host: testnet.switchwallet.io
Authorization: ApiKey 5128620015083006430
Content-Type: application/json
Content-Length: 137
{
// your request body
}
var myHeaders = new Headers();
myHeaders.append("Authorization", "ApiKey 5128620015083006430");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
// your request body
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://testnet.switchwallet.io/api/v1/walletAddress/generate", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
```
PostMan
Code Gist
POST /api/v1/walletAddress/generate HTTP/1.1
Host: testnet.switchwallet.io
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InhlbmRmaW5hbmNlQGdtYWlsLmNvbSIsInN1YiI6ImI0M2UwNjcyLWI4MjItNDUwOS05ZmFlLTk0YTRlYThlMDU3ZiIsImp0aSI6IjM2M2I2N2YyLTgyODUtNDc4Ni04NDFkLTdmYzU0MmE3ZWZlOCIsImlhdCI6IjE2NzA1NjYwMzI1MTIuNDY1NiIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWVpZGVudGlmaWVyIjoiYjQzZTA2NzItYjgyMi00NTA5LTlmYWUtOTRhNGVhOGUwNTdmIiwiZXhwIjoxNjczMTU4MDMyLCJpc3MiOiJTd2l0Y2hXYWxsZXQiLCJhdWQiOiJTd2l0Y2hXYWxsZXRNZXJjaGFudHMifQ.J6pzMHsXew2qEuQXHK3vK52DX7aFxd434QulO4MG-3w
Content-Type: application/json
Content-Length: 137
{
// your request body
}
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InhlbmRmaW5hbmNlQGdtYWlsLmNvbSIsInN1YiI6ImI0M2UwNjcyLWI4MjItNDUwOS05ZmFlLTk0YTRlYThlMDU3ZiIsImp0aSI6IjM2M2I2N2YyLTgyODUtNDc4Ni04NDFkLTdmYzU0MmE3ZWZlOCIsImlhdCI6IjE2NzA1NjYwMzI1MTIuNDY1NiIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWVpZGVudGlmaWVyIjoiYjQzZTA2NzItYjgyMi00NTA5LTlmYWUtOTRhNGVhOGUwNTdmIiwiZXhwIjoxNjczMTU4MDMyLCJpc3MiOiJTd2l0Y2hXYWxsZXQiLCJhdWQiOiJTd2l0Y2hXYWxsZXRNZXJjaGFudHMifQ.J6pzMHsXew2qEuQXHK3vK52DX7aFxd434QulO4MG-3w");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
// your request body
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://testnet.switchwallet.io/api/v1/walletAddress/generate", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
```