A Swift library allows you to integrate Instapaper into your iOS app.
- Open your existing project with Xcode6.
- Drag the InstapaperSDK folder into your Xcode project.
- Make sure the “Copy items into destination group's folder (if needed)” checkbox is checked.
- Select your Xcode project in the Project Navigator, select your application target, select “Build Phases”, and add Security.framework to your “Link Binary With Libraries” phase.
Before adding pages, you'll need to authenticate with an Instapaper username and password.
InstapaperSimpleAPI.sharedAPI.login(username, password: password, success: {
response in
//
}, failure: {
error in
//
})
If the user logged in successfully, your app can now make request to add URLs to Instapaper!
InstapaperSimpleAPI.sharedAPI.saveURL(url, success: {
response in
//
}, failure: {
error in
//
})
- Open the project with Xcode 6.
- Enter your Instapaper email and password.
- Press command + u.
- Support the Full API