Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# Perfect CURL Request Examples[简体中文](README.zh_CN.md)



Get Involed with Perfect!



Star Perfect On Github


Stack Overflow


Follow Perfect on Twitter


Join the Perfect Slack



Swift 4.0


Platforms OS X | Linux


License Apache


PerfectlySoft Twitter


Slack Status

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).