{"id":19414846,"url":"https://github.com/fcannizzaro/esp8266-request","last_synced_at":"2025-02-25T03:12:23.419Z","repository":{"id":101091990,"uuid":"84006162","full_name":"fcannizzaro/esp8266-request","owner":"fcannizzaro","description":"Make simple http requests on esp8266 Micropython","archived":false,"fork":false,"pushed_at":"2017-04-09T21:53:49.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T16:13:11.246Z","etag":null,"topics":["esp8266","http","micropython","request"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcannizzaro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-05T22:13:55.000Z","updated_at":"2022-09-01T01:20:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"44188711-7dda-4822-b589-1b6b6897e51f","html_url":"https://github.com/fcannizzaro/esp8266-request","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Fesp8266-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Fesp8266-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Fesp8266-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Fesp8266-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcannizzaro","download_url":"https://codeload.github.com/fcannizzaro/esp8266-request/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240593183,"owners_count":19825939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp8266","http","micropython","request"],"created_at":"2024-11-10T12:40:03.296Z","updated_at":"2025-02-25T03:12:23.387Z","avatar_url":"https://github.com/fcannizzaro.png","language":"Python","readme":"# esp8266-request\nMake simple http requests on esp8266 Micropython\n\n# Usage\n```python\nfrom request import Request\n\nheads = { 'Authorization': 'Basic QWxhZGRpbjpPcGVuU2VzYW1l' }\n\n# Get Request\nerr, response = Request.get('httpbin.org/get', heads)\n\n# JSON response\nif not err and response.statusCode is 200:\n  print(response.body)\n\n# Post Request (JSON Data)\n\ndata = {\n  'arg' : [1,2,3],\n  'nested' : {\n    'inside' : 7\n  }\n}\n\n# Response Body as file\nerr, _ = Request.post('httpbin.org/post', data, file='response.txt')\n```\n\n# Valid URL\n- http://example.com\n- www.example.com\n- example.com\n- example.com:8080\n- example.com/path/to\n- 93.184.216.34\n\n# Request\nUse python dictionaries for headers and post data.\n\n# Response (Class)\n\n## statusCode\nrequest status code 200, 404, ...\n\n## headers\npython dictionary\n\n## body\nresponse body (text or dictionary)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcannizzaro%2Fesp8266-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcannizzaro%2Fesp8266-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcannizzaro%2Fesp8266-request/lists"}