Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- await fetch('https://rominacsvsms.api.ushahidi.io/oauth/token', {
- method: 'POST',
- body: JSON.stringify({
- scope: '*',
- client_secret: '35e7f0bca957836d05ca0492211b0ac707671261',
- client_id: 'ushahidiui',
- grant_type: 'password',
- password: 'hellohello',
- username: '[email protected]'
- }),
- headers: {
- 'Accept': 'application/json',
- 'Content-Type': 'application/json',
- 'Authentication': 'large-auth-string'
- }
- })
- .then(response => {
- return response.json();
- })
- .then(data => {
- console.log(`Success!!!`, data);
- })
- .catch(error => {
- console.log(error);
- });
Add Comment
Please, Sign In to add comment