Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PerfectExamples/Perfect-CURL-Example
Examples using CURL to request data using Perfect
https://github.com/PerfectExamples/Perfect-CURL-Example
curl networking perfect server-side-swift swift
Last synced: 2 months ago
JSON representation
Examples using CURL to request data using Perfect
- Host: GitHub
- URL: https://github.com/PerfectExamples/Perfect-CURL-Example
- Owner: PerfectExamples
- Created: 2016-10-03T14:46:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T19:29:27.000Z (almost 7 years ago)
- Last Synced: 2024-08-02T00:22:35.870Z (5 months ago)
- Topics: curl, networking, perfect, server-side-swift, swift
- Language: Swift
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-Swift-Packages - Perfect-CURL-Example - Examples using CURL to request data using Perfect. (Samples)
README
# Perfect CURL Request Examples[简体中文](README.zh_CN.md)
Examples using CURL to request data using Perfect
This package builds with Swift Package Manager and is part of the [Perfect](https://github.com/PerfectlySoft/Perfect) project.
Ensure you have installed Xcode 9.2 or later.
## Setup - Xcode 9
* Check out or download the project;
* In terminal, navigate to the directory and execute```
swift package generate-xcodeproj && open .
```* Open the Xcode project
* Select the executable target, and "Run"## Setup - Terminal
* Check out or download the project;
* In terminal, navigate to the directory
* Execute `swift run`From either Xcode or Terminal, you will see a result similar to this:
```
Linking ./.build/x86_64-apple-macosx10.10/debug/Perfect-CURL-Example
Test URL: https://helloacm.com
get 116864 bytes
====================================================================
Test URL: http://ip.jsontest.com/
get json: ["ip": "68.232.66.174"]
====================================================================
Using Swift 4.0 Decodable to test http://date.jsontest.com/:
Test URL: http://date.jsontest.com/
get json: JSONTestReturn(time: "07:25:00 PM", milliseconds_since_epoch: 1517340300439, date: "01-30-2018")
```## Issues
We are transitioning to using JIRA for all bugs and support related issues, therefore the GitHub issues has been disabled.
If 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.
A 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)
## Further Information
For more information on the Perfect project, please visit [perfect.org](http://perfect.org).