https://github.com/putdotio/putio-swift
Swift SDK for interacting with the put.io API.
https://github.com/putdotio/putio-swift
Last synced: 4 months ago
JSON representation
Swift SDK for interacting with the put.io API.
- Host: GitHub
- URL: https://github.com/putdotio/putio-swift
- Owner: putdotio
- License: mit
- Created: 2019-03-13T20:37:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-05T14:40:48.000Z (about 2 years ago)
- Last Synced: 2026-01-14T10:36:48.809Z (5 months ago)
- Language: Swift
- Homepage:
- Size: 290 KB
- Stars: 19
- Watchers: 7
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Installation
`PutioAPI` is available through [CocoaPods](https://cocoapods.org/pods/PutioAPI). To install, simply add the following line to your Podfile:
```ruby
pod 'PutioAPI'
```
## Usage
- For authentication, check the [Example Project](./Example/PutioAPI/ViewController.swift) for a simple [`ASWebAuthenticationSession`](https://developer.apple.com/documentation/authenticationservices/authenticating_a_user_through_a_web_service) flow.
- Check [the classes folder](./PutioAPI/Classes/) for available models and respective methods.
- You can also use `get`, `post`, `put`, and `delete` methods with relative URLs to make requests to the API.
## Contribution
Clone the repo.
```bash
git clone git@github.com:putdotio/putio-swift.git
cd ./putio-swift
```
Install the package managers, it's suggested to use `rbenv` and `bundler` for convenience.
```bash
gem install bundler # if you don't have bundler
bundle install
```
Install the dependencies then open the workspace.
```bash
cd ./Example
bundle exec pod install
open ./PutioAPI.xcworkspace
```