接続の確立
接続プロファイルの設定
[CData]リボンから[データの取得]をクリックし、[取得元:GitHub]> 設定済みの接続 を選択してCData クエリウィンドウを起動します。新しい接続を設定するには、[新しいGitHub 接続]をクリックします。ここでは、接続の設定、接続のテスト、および接続プロファイルの保存を行うことができます。
Connecting to GitHub
GitHub supports OAuth authentication only. AuthScheme must be set to OAuth in all OAuth flows.
Desktop Applications
CData provides an embedded OAuth application that simplifies OAuth desktop Authentication. Alternatively, you can create a custom OAuth application. See カスタムOAuth アプリの作成 for information about creating custom applications and reasons for doing so.Get and Refresh the OAuth Access Token
After setting the following, you are ready to connect:
- OAuthClientId (custom applications only): Set this to the client Id assigned when you registered your application.
- OAuthClientSecret (custom applications only): Set this to the client secret assigned when you registered your application.
- CallbackURL (custom application only): Set this to the redirect URI defined when you registered your application.
- UserLogin (optional): Set this to the name of the user whose repository you plan to query. Note that you can override this when using UserLogin as a criterion in a query. If you do not explicitly specify a UserLogin, the driver uses the currently authenticated user.
- RepositoryName (optional): Set this to the name of the repository you plan to query. You can override this when using RepositoryName as a criterion in a query.
接続プロパティ
最後に、Connection プロパティを参照してください。接続の確立に使用できるさまざまなオプションの説明があります。
接続の管理
GitHub への認証に成功すると、インポートするデータをカスタマイズすることができます。詳しくは、接続の管理 を参照してください。
関連項目
- データのクエリ:[データ選択]ウィザードを使用してスプレッドシートにデータをプルします。また、ここではスケジュールされたデータのリフレッシュも設定できます。
- Excel アドインの使用:利用可能なCData Excel 関数 を使用するなど、GitHub データとやり取りする他の方法が見つかります。