Skip to content

Commit a2b553b

Browse files
committed
Update README
Mention that token can be fetched through blocket own api by visiting mentioned url.
1 parent 5227766 commit a2b553b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,14 @@ To query listings related to a specific car, supply the following parameters:
156156

157157
## 🔓 Blocket API token
158158

159-
Your token is located in the request headers in the "Bevakningar"-section on Blocket.
159+
There are two ways to acquire your token:
160+
161+
- Log in to Blocket.se with your credentials using any web browser.
162+
- Go to [this](https://www.blocket.se/api/adout-api-route/refresh-token-and-validate-session) URL and copy the value of `bearerToken`.
163+
164+
If there's a better way of doing this, feel free to help out in [#2](https://github.com/dunderrrrrr/blocket_api/issues/2).
165+
166+
Your token can also be found in the request headers in the "Bevakningar"-section on Blocket.
160167

161168
- **Login to [blocket.se](https**://blocket.se/)**: Sign in with your credentials.
162169
- **Click "Bevakningar"**: Go to the "Bevakningar" section.

0 commit comments

Comments
 (0)