Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daisuke-t-jp/githubclient-sample
GitHub API iOS sample client.
https://github.com/daisuke-t-jp/githubclient-sample
github-api ios-app
Last synced: about 1 month ago
JSON representation
GitHub API iOS sample client.
- Host: GitHub
- URL: https://github.com/daisuke-t-jp/githubclient-sample
- Owner: daisuke-t-jp
- Created: 2021-04-03T06:41:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-10T13:15:11.000Z (over 3 years ago)
- Last Synced: 2024-11-07T21:49:29.197Z (3 months ago)
- Topics: github-api, ios-app
- Language: Swift
- Homepage:
- Size: 1.16 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.ja.md
Awesome Lists containing this project
README
[English](https://github.com/daisuke-t-jp/GitHubClient-Sample/blob/master/README.md)
# GitHubClient-Sample
[GitHub REST API](https://docs.github.com/ja/rest) クライアントの iOS サンプルです。
## 機能
- ユーザを検索
- ユーザ詳細を表示
- ユーザのリポジトリのリンクを開く## セットアップ方法
### 1. GitHub API のアクセストークンを用意
https://docs.github.com/ja/rest/guides/getting-started-with-the-rest-api#authentication
### 2. mac に CocoaPods-keys をインストール
プロジェクトにアクセストークンを設定するために [CocoaPods-keys](https://github.com/orta/cocoapods-keys) をインストールします。
```zsh
% gem install cocoapods-keys
```### 3. CocoaPods でライブラリをインストール
プロジェクトのルートで `pod install` を実行します。
コマンド実行後に、以下のように GitHub のアクセストークンが要求されるため、入力してください。
```zsh
% pod installCocoaPods-Keys has detected a keys mismatch for your setup.
What is the key for GitHubPersonalAccessToken
>
```
### 4. 実行
`GitHubClient-Sample.xcworkspace` を Xcode で開いて実行できます。