# What is the equivalent Julia code for this code in Python using requests?

**URL:** <https://discourse.julialang.org/t/what-is-the-equivalent-julia-code-for-this-code-in-python-using-requests/59468>\
**Category:** New to Julia\
**Created:** [April 17, 2021, 9:29am UTC](https://discourse.julialang.org/t/what-is-the-equivalent-julia-code-for-this-code-in-python-using-requests/59468 "2021-04-17T09:29:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![danielw2904](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielw2904/32/10890_2.png) [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Post date:** [April 17, 2021, 10:19am UTC](https://discourse.julialang.org/t/what-is-the-equivalent-julia-code-for-this-code-in-python-using-requests/59468/4 "2021-04-17T10:19:41Z")

</div>

This could be helpful

> [@Help translating curl command to HTTP.jl](https://discourse.julialang.org/t/help-translating-curl-command-to-http-jl/53790):
>
> I would like to scrape data using the Spotify API and I cannot seem to get the example curl command to translate to HTTP.jl I am trying to get the accesstoken using my credentials. The relevant (working) curl command run through Julia is: run(`curl -X "POST" -H "Authorization: Basic $refreshtoken" -d grant_type=client_credentials https://accounts.spotify.com/api/token -o creds.json`) My attempt in HTTP.jl is: HTTP.request("POST", "https://accounts.spotify.com/api/token", ["Authori…

[https://juliaweb.github.io/HTTP.jl/stable/public\_interface/#HTTP.request](https://juliaweb.github.io/HTTP.jl/stable/public_interface/#HTTP.request)

---

_[View the full topic](https://discourse.julialang.org/t/what-is-the-equivalent-julia-code-for-this-code-in-python-using-requests/59468)._
