{"id":19611028,"url":"https://github.com/fenix-hub/unirest-gdscript","last_synced_at":"2025-09-07T18:38:23.356Z","repository":{"id":51852841,"uuid":"520534713","full_name":"fenix-hub/unirest-gdscript","owner":"fenix-hub","description":"Unirest in GDScript: Simplified, lightweight HTTP client library. Godot Engine HTTPClient extension inspired by Kong Unirest.","archived":false,"fork":false,"pushed_at":"2024-02-15T09:33:07.000Z","size":61,"stargazers_count":36,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T04:11:24.186Z","etag":null,"topics":["gdscript","godot","hacktoberfest","http","httpclient","unirest"],"latest_commit_sha":null,"homepage":"https://nicolosantilio.com/unirest-gdscript","language":"GDScript","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/fenix-hub.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":"2022-08-02T14:37:02.000Z","updated_at":"2025-01-26T12:55:04.000Z","dependencies_parsed_at":"2024-02-15T10:44:20.868Z","dependency_job_id":null,"html_url":"https://github.com/fenix-hub/unirest-gdscript","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fenix-hub%2Funirest-gdscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fenix-hub%2Funirest-gdscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fenix-hub%2Funirest-gdscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fenix-hub%2Funirest-gdscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fenix-hub","download_url":"https://codeload.github.com/fenix-hub/unirest-gdscript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251219600,"owners_count":21554444,"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":["gdscript","godot","hacktoberfest","http","httpclient","unirest"],"created_at":"2024-11-11T10:35:29.955Z","updated_at":"2025-04-27T22:33:05.933Z","avatar_url":"https://github.com/fenix-hub.png","language":"GDScript","readme":"# unirest-gdscript (4.x)\nUnirest in GDScript: Simplified, lightweight HTTP client library. Godot Engine HTTPClient extension inspired by Kong Unirest.\n\n👉 [3.x](https://github.com/fenix-hub/unirest-gdscript)\n\n### sync example\n```gdscript\nfunc _ready() -\u003e void:\n    var json_response: JsonResponse = await Unirest.Get(\"https://jsonplaceholder.typicode.com/posts/{id}\") \\\n    .header(\"Accept\", \"application/json\") \\\n    .route_param(\"id\", \"1\") \\\n    .as_json()\n    \n    # Execution will stop until Unirest receives a response\n    \n    var json_node: JsonNode = json_response.get_body()\n    print(json_node.as_dictionary().get(\"title\"))\n```\n\n### async example (lambda function)\n```gdscript\nfunc _ready() -\u003e void:\n    Unirest.Get(\"https://jsonplaceholder.typicode.com/posts/{id}\") \\\n    .header(\"Accept\", \"application/json\") \\\n    .route_param(\"id\", \"1\") \\\n    .as_json_async(\n        func(json_response: JsonResponse) -\u003e void:\n            var title: String = json_response.get_body().as_dictionary().get(\"title\")\n            print(\"Title of 1st post is: %s\" % title)\n    )\n    \n    # Execution won't stop, and the anonymous function will be executed automatically\n```\n\n### async example (signals)\n```gdscript\nfunc _ready() -\u003e void:\n    Unirest.Get(\"https://jsonplaceholder.typicode.com/posts/{id}\") \\\n    .header(\"Accept\", \"application/json\") \\\n    .route_param(\"id\", \"1\") \\\n    .as_json_async() \\\n    .completed.connect(handle_response)\n    \n    # Execution won't stop here, and your function will be called upon signal emission\n\n\nfunc handle_response(json_response: JsonResponse) -\u003e void:\n    var title: String = json_response.get_body().as_dictionary().get(\"title\")\n    print(\"Title of 1st post is: %s\" % title)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffenix-hub%2Funirest-gdscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffenix-hub%2Funirest-gdscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffenix-hub%2Funirest-gdscript/lists"}