GarySabo GarySabo - 4 years ago 95
iOS Question

How to make authenticated Twitter API call in a Playground?

I'm trying to set up a Playground to work with the Twitter REST API. Unlike an Xcode project where the Fabric app and SDK are installed, and there being no easy way I've found to get dependencies to work well in playgrounds, how can I structure a basic HTTP request and get authenticated using my Fabric Key and Secret? I think it would be similar to the base64 encoding in this answer but here they're using a user and password of an account: How to make an HTTP request + basic auth in Swift

Answer Source
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download