Examples using CURL to request data using Perfect
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sources/Perfect-CURL-Example
.gitignore Fully Upgrading to Swift 4 + Perfect 3. Jan 30, 2018
Package.swift
README.md Fully Upgrading to Swift 4 + Perfect 3. Jan 30, 2018
README.zh_CN.md Fully Upgrading to Swift 4 + Perfect 3. Jan 30, 2018

README.md

Perfect CURL Request Examples简体中文

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 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 and raise it.

A comprehensive list of open issues can be found at http://jira.perfect.org:8080/projects/ISS/issues

Further Information

For more information on the Perfect project, please visit perfect.org.