Formatting a complex get


#1

Hi All, I’ve been working through an API and having success with the basics like this:

this.http.get(‘https://swapi.co/api/films/authorize?response_type=code&client_id=2zAjSB3t&scope=read&redirect_uri=http%3A%2F%2Flocalhost’)
.map(res => res.json())
.subscribe(data => {
console.log(data);
});

But I cannot find any examples for how to format something like the following in a get:

orgId: apiexample
accessToken: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NjgzMzYxNzIsInVzZXJfbmFtZSI6IjEwMDEzOTg5NjUiLCJzY29wZSI6WyJyZWFkIl0sInNlcnZpY2VJZCI6NzM0MCwiYXV0aG9yaXRpZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJJZCI6MTAwMTM5ODk2NSwianRpIjoiYWRjNTEzNzYtOTkzZS00OWQ2LTlhYTQtNGRhNDkwNjJkYjg4IiwiY2xpZW50X2lkIjoiOFpnWnhWOUI4cmR3VlhKOGx6dWgifQ.Ph1vLFYz-TEJRXlECBuY3-lf9FQTIFeniwYfoTLS–Q
GET /api/v1/profile/me HTTP/1.1
Host: apiexample.memberclicks.net
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NjgzMzYxNzIsInVzZXJfbmFtZSI6IjEwMDEzOTg5NjUiLCJzY29wZSI6WyJyZWFkIl0sInNlcnZpY2VJZCI6NzM0MCwiYXV0aG9yaXRpZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJJZCI6MTAwMTM5ODk2NSwianRpIjoiYWRjNTEzNzYtOTkzZS00OWQ2LTlhYTQtNGRhNDkwNjJkYjg4IiwiY2xpZW50X2lkIjoiOFpnWnhWOUI4cmR3VlhKOGx6dWgifQ.Ph1vLFYz-TEJRXlECBuY3-lf9FQTIFeniwYfoTLS–Q
Cache-Control: no-cache