{"id":13635610,"url":"https://github.com/PerfectExamples/Perfect-CURL-Example","last_synced_at":"2025-04-19T04:31:18.722Z","repository":{"id":121664420,"uuid":"69880399","full_name":"PerfectExamples/Perfect-CURL-Example","owner":"PerfectExamples","description":"Examples using CURL to request data using Perfect","archived":false,"fork":false,"pushed_at":"2018-01-30T19:29:27.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-09T05:34:38.550Z","etag":null,"topics":["curl","networking","perfect","server-side-swift","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PerfectExamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-10-03T14:46:34.000Z","updated_at":"2022-10-28T08:07:26.000Z","dependencies_parsed_at":"2024-08-02T00:13:00.816Z","dependency_job_id":null,"html_url":"https://github.com/PerfectExamples/Perfect-CURL-Example","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/PerfectExamples%2FPerfect-CURL-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectExamples%2FPerfect-CURL-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectExamples%2FPerfect-CURL-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectExamples%2FPerfect-CURL-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerfectExamples","download_url":"https://codeload.github.com/PerfectExamples/Perfect-CURL-Example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249606322,"owners_count":21298851,"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":["curl","networking","perfect","server-side-swift","swift"],"created_at":"2024-08-02T00:00:48.201Z","updated_at":"2025-04-19T04:31:18.495Z","avatar_url":"https://github.com/PerfectExamples.png","language":"Swift","funding_links":[],"categories":["Samples"],"sub_categories":[],"readme":"# Perfect CURL Request Examples[简体中文](README.zh_CN.md)\r\n\r\n\u003cp align=\"center\"\u003e\r\n    \u003ca href=\"http://perfect.org/get-involved.html\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"http://perfect.org/assets/github/perfect_github_2_0_0.jpg\" alt=\"Get Involed with Perfect!\" width=\"854\" /\u003e\r\n    \u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n    \u003ca href=\"https://github.com/PerfectlySoft/Perfect\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"http://www.perfect.org/github/Perfect_GH_button_1_Star.jpg\" alt=\"Star Perfect On Github\" /\u003e\r\n    \u003c/a\u003e  \r\n    \u003ca href=\"http://stackoverflow.com/questions/tagged/perfect\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"http://www.perfect.org/github/perfect_gh_button_2_SO.jpg\" alt=\"Stack Overflow\" /\u003e\r\n    \u003c/a\u003e  \r\n    \u003ca href=\"https://twitter.com/perfectlysoft\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"http://www.perfect.org/github/Perfect_GH_button_3_twit.jpg\" alt=\"Follow Perfect on Twitter\" /\u003e\r\n    \u003c/a\u003e  \r\n    \u003ca href=\"http://perfect.ly\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"http://www.perfect.org/github/Perfect_GH_button_4_slack.jpg\" alt=\"Join the Perfect Slack\" /\u003e\r\n    \u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n    \u003ca href=\"https://developer.apple.com/swift/\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat\" alt=\"Swift 4.0\"\u003e\r\n    \u003c/a\u003e\r\n    \u003ca href=\"https://developer.apple.com/swift/\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"https://img.shields.io/badge/Platforms-OS%20X%20%7C%20Linux%20-lightgray.svg?style=flat\" alt=\"Platforms OS X | Linux\"\u003e\r\n    \u003c/a\u003e\r\n    \u003ca href=\"http://perfect.org/licensing.html\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"https://img.shields.io/badge/License-Apache-lightgrey.svg?style=flat\" alt=\"License Apache\"\u003e\r\n    \u003c/a\u003e\r\n    \u003ca href=\"http://twitter.com/PerfectlySoft\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"https://img.shields.io/badge/Twitter-@PerfectlySoft-blue.svg?style=flat\" alt=\"PerfectlySoft Twitter\"\u003e\r\n    \u003c/a\u003e\r\n    \u003ca href=\"http://perfect.ly\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"http://perfect.ly/badge.svg\" alt=\"Slack Status\"\u003e\r\n    \u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\nExamples using CURL to request data using Perfect\r\n\r\nThis package builds with Swift Package Manager and is part of the [Perfect](https://github.com/PerfectlySoft/Perfect) project.\r\n\r\nEnsure you have installed Xcode 9.2 or later.\r\n\r\n## Setup - Xcode 9\r\n\r\n\r\n* Check out or download the project;\r\n* In terminal, navigate to the directory and execute\r\n\r\n```\r\nswift package generate-xcodeproj \u0026\u0026 open .\r\n```\r\n\r\n* Open the Xcode project\r\n* Select the executable target, and \"Run\"\r\n\r\n## Setup - Terminal\r\n\r\n* Check out or download the project;\r\n* In terminal, navigate to the directory \r\n* Execute `swift run`\r\n\r\nFrom either Xcode or Terminal, you will see a result similar to this:\r\n\r\n```\r\nLinking ./.build/x86_64-apple-macosx10.10/debug/Perfect-CURL-Example\r\nTest URL: https://helloacm.com\r\nget 116864 bytes\r\n====================================================================\r\nTest URL: http://ip.jsontest.com/\r\nget json: [\"ip\": \"68.232.66.174\"]\r\n====================================================================\r\nUsing Swift 4.0 Decodable to test http://date.jsontest.com/:\r\nTest URL: http://date.jsontest.com/\r\nget json: JSONTestReturn(time: \"07:25:00 PM\", milliseconds_since_epoch: 1517340300439, date: \"01-30-2018\")\r\n```\r\n\r\n\r\n## Issues\r\n\r\nWe are transitioning to using JIRA for all bugs and support related issues, therefore the GitHub issues has been disabled.\r\n\r\nIf you find a mistake, bug, or any other helpful suggestion you'd like to make on the docs please head over to [http://jira.perfect.org:8080/servicedesk/customer/portal/1](http://jira.perfect.org:8080/servicedesk/customer/portal/1) and raise it.\r\n\r\nA comprehensive list of open issues can be found at [http://jira.perfect.org:8080/projects/ISS/issues](http://jira.perfect.org:8080/projects/ISS/issues)\r\n\r\n\r\n## Further Information\r\nFor more information on the Perfect project, please visit [perfect.org](http://perfect.org).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerfectExamples%2FPerfect-CURL-Example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPerfectExamples%2FPerfect-CURL-Example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerfectExamples%2FPerfect-CURL-Example/lists"}