About 50 results
Open links in new tab
  1. Making a request to a RESTful API using Python - Stack Overflow

    It has broadly request-compatible API, supports async, HTTP/2 and has a good performance. It is used by, for example, python-telegram-bot - a popular client for Telegram bots.

  2. Correct way to make a Python HTTPS request using requests module?

    Some things to try: use curl to construct a request by hand, to make sure that you know what the contents of a valid request should be. If that works, then you know that there is a problem with the …

  3. Python: FastAPI error 422 with POST request when sending JSON data

    Jan 27, 2020 · Also, Python and JavaScript HTTP client examples are provided, in order to test the given backend endpoints. Option 1 As per the documentation, when you need to send JSON data …

  4. How to call an API using Python Requests library

    Apr 1, 2018 · I can't figure out how to call this api correctly using python urllib or requests. Let me give you the code I have now: import requests url = "http://api.cortical.io ...

  5. How do I read a response from Python Requests? - Stack Overflow

    I have two Python scripts. One uses the Urllib2 library and one uses the Requests library. I have found Requests easier to implement, but I can't find an equivalent for urlib2's read() function. For

  6. Python 'Requests' POST with param data - Stack Overflow

    params is for GET -style URL parameters, and data is for POST -style body information. It is perfectly legal to provide both types of information in a request, and your request does so too, but you …

  7. Making an API call in Python with an API that requires a bearer token

    Apr 29, 2015 · The API guidance states that a bearer token must be generated to allow calls to the API, which I have done successfully. However I am unsure of the syntax to include this token as bearer …

  8. Python requests arguments/dealing with api pagination

    49 I'm playing around with the Angel List (AL) API and want to pull all jobs in San San Francisco. Since I couldn't find an active Python wrapper for the api (if I make any headway, I think I'd like to make my …

  9. Python request with authentication (access_token)

    I am trying to use an API query in Python. From the command line I can use curl like so: curl --header "Authorization:access_token myToken" https://website.example/id This gives some JSON

  10. Python requests - print entire http request (raw)?

    385 While using the requests module, is there any way to print the raw HTTP request? I don't want just the headers, I want the request line, headers, and content printout. Is it possible to see what …