{"id":16365813,"url":"https://github.com/charlesfries/swiftyfetch","last_synced_at":"2026-02-16T20:30:15.489Z","repository":{"id":93529873,"uuid":"143057148","full_name":"charlesfries/SwiftyFetch","owner":"charlesfries","description":"A fetch-like CocoaPod for programmatically making web requests with JSON responses on iOS.","archived":false,"fork":false,"pushed_at":"2018-08-22T00:31:52.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T00:44:18.935Z","etag":null,"topics":["cocoapods","fetch","http","http-client","ios","json","json-api","request"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charlesfries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-31T19:17:37.000Z","updated_at":"2018-08-22T00:31:53.000Z","dependencies_parsed_at":"2023-04-07T17:32:18.968Z","dependency_job_id":null,"html_url":"https://github.com/charlesfries/SwiftyFetch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlesfries%2FSwiftyFetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlesfries%2FSwiftyFetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlesfries%2FSwiftyFetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlesfries%2FSwiftyFetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlesfries","download_url":"https://codeload.github.com/charlesfries/SwiftyFetch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239825015,"owners_count":19703199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocoapods","fetch","http","http-client","ios","json","json-api","request"],"created_at":"2024-10-11T02:44:35.444Z","updated_at":"2026-02-16T20:30:15.444Z","avatar_url":"https://github.com/charlesfries.png","language":"Swift","readme":"# SwiftyFetch\n\n[![CI Status](https://img.shields.io/travis/charlesfries/SwiftyFetch.svg?style=flat)](https://travis-ci.org/charlesfries/SwiftyFetch)\n[![Version](https://img.shields.io/cocoapods/v/SwiftyFetch.svg?style=flat)](https://cocoapods.org/pods/SwiftyFetch)\n[![License](https://img.shields.io/cocoapods/l/SwiftyFetch.svg?style=flat)](https://cocoapods.org/pods/SwiftyFetch)\n[![Platform](https://img.shields.io/cocoapods/p/SwiftyFetch.svg?style=flat)](https://cocoapods.org/pods/SwiftyFetch)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n```swift\n// AppDelegate.swift\n\nimport SwiftyFetch\n\nFetch.shared.setBaseUrl(\"https://jsonplaceholder.typicode.com/\")\nFetch.shared.setAPIKey(\"xxxxxxxxxxxxxxxxxxxx\")\n\nUserDefaults.standard.set(\"accessToken\", forKey: \"xxxxxxxxxxxxxxxxxxxx\") // \u003c- for testing; should be set by your auth controller\nif let accessToken = UserDefaults.standard.value(forKey: \"accessToken\") as? String {\n    Fetch.shared.setToken(accessToken)\n}\n```\n\n```swift\n// ViewController.swift\n\nimport SwiftyFetch\n\nFetch.shared.request(\"posts\", method: \"POST\", body: [\"limit\": 25]) { result in\n    switch result {\n    case .success(let response):\n        if response.ok {\n            let json = response.json\n            print(\"JSON: \\(json)\")\n        } else {\n            print(\"HTTP: \\(response.status), \\(response.statusText)\")\n        }\n    case .failure(let error):\n        print(error)\n    }\n}\n```\n\n```swift\nresponse.status // HTTP status code\nresponse.statusText // HTTP status description\nresponse.ok // true if 200\nresponse.headers // HTTP headers\nresponse.url // full requested URL\nresponse.text // string representation of response data\nresponse.json // JSON response data\n```\n\n## Requirements\n\n## Installation\n\nSwiftyFetch is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SwiftyFetch', :git =\u003e 'https://github.com/charlesfries/SwiftyFetch.git'\n```\n\n## Author\n\ncharlesfries, charliefries@icloud.com\n\n## License\n\nSwiftyFetch is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlesfries%2Fswiftyfetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlesfries%2Fswiftyfetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlesfries%2Fswiftyfetch/lists"}