Lol, basic auth is so 2010. π But yeah, the curl authorization header can trip anyone up. One thing that helped me was using environment variables for the token.
Like, set `TOKEN=your_token_here` and then use `-H "Authorization: Bearer $TOKEN"`. Saves you from typing it out every time and avoids typos.
Also, if youβre on Linux/Mac, `jq` is a great tool for parsing JSON responses. Makes debugging way less painful.
Like, set `TOKEN=your_token_here` and then use `-H "Authorization: Bearer $TOKEN"`. Saves you from typing it out every time and avoids typos.
Also, if youβre on Linux/Mac, `jq` is a great tool for parsing JSON responses. Makes debugging way less painful.
