on-internet
← Community

Swift - How to make a cURL request? (Swift 5.2 / macOS Catalina)

Stack Overflow ·

I'm developing a test app on MacOS - intended for the Mac desktop. Looking to make a API call to Gumroad (digital products seller). They say that we have to make a cURL request: like this - curl https://api.gumroad.com/v2/licenses/verify \ -d "product_permalink=QMGY" \ -d "license_key=YOUR_CUSTOMERS_LICENSE_KEY" \ -X POST I'm very new to swift and everything MacOS development. Clueless how I'd do this - lot of documentation is years old or iOS, or talks of other http requests (and I don't know how to relate that to making a cURL call) which makes it hard. Any help is appreciated. The call retu

Comments

Sign in or sign up to comment and upvote.

No comments yet.