# Trouble Connecting to API using Web Authorization

**URL:** <https://community.thunkable.com/t/trouble-connecting-to-api-using-web-authorization/11819>\
**Category:** Questions about Thunkable X\
**Created:** [December 6, 2017, 11:28pm UTC](https://community.thunkable.com/t/trouble-connecting-to-api-using-web-authorization/11819 "2017-12-06T23:28:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuel](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@manuel](https://community.thunkable.com/u/manuel)\
**Post date:** [December 6, 2017, 11:28pm UTC](https://community.thunkable.com/t/trouble-connecting-to-api-using-web-authorization/11819/1 "2017-12-06T23:28:59Z")

</div>

Hello Fellow Thunkers!

I am working on building my first ios app and as a part of my first project I would love to connect it to spotify so i can create an app where users can listen to music/playlist i curate. I have been playing around with the WEB API component and have been able to connect to simple 3rd API’s, however I am getting stumped in trying to connect with Spotify’s service. They have a few different ways of being able to connect (authorization code vs. client credentials) and tbh, im not quite sure which route to go + how to set it up. Can you someone help me authenticate to their service?

link to their authorization guide: [https://developer.spotify.com/web-api/authorization-guide/](https://developer.spotify.com/web-api/authorization-guide/)

Thanks!

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [December 8, 2017, 1:15am UTC](https://community.thunkable.com/t/trouble-connecting-to-api-using-web-authorization/11819/2 "2017-12-08T01:15:21Z")

</div>

In the properties of the web api component you just add in the pairs of values ( i.e username and password and their corresponding values) and these will be included in your post request.

---

<div class="post-metadata">

**Author:** ![manuel](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@manuel](https://community.thunkable.com/u/manuel)\
**Post date:** [December 8, 2017, 5:11am UTC](https://community.thunkable.com/t/trouble-connecting-to-api-using-web-authorization/11819/3 "2017-12-08T05:11:10Z")

</div>

Once i pass the login credentials via the post request, how do i subsequently use the access token that is provided back to me?

---

<div class="post-metadata">

**Author:** ![robdob](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@robdob](https://community.thunkable.com/u/robdob)\
**Post date:** [July 6, 2018, 3:46am UTC](https://community.thunkable.com/t/trouble-connecting-to-api-using-web-authorization/11819/4 "2018-07-06T03:46:49Z")

</div>

hello @manuel… did you get this processed configured?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:02pm UTC](https://community.thunkable.com/t/trouble-connecting-to-api-using-web-authorization/11819/5 "2024-11-08T12:02:11Z")

</div>


