Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Joseph Hall
Joseph Hall
10,865 Points

How to make API calls to a protected server in iOS?

I'm working on a project for an organization with a protected server. To get into the server, you have to SSH into it with a VPN -- or cURL to it with the --cert flag, and provide it a path to a certificate to access the server.

How would I go about making these API calls in Swift? It Feels too clunky to be making curl requests in Swift. Protected server, need to make GET request to it, in Swift. Thank you in advance for your help!