You can find your GitHub app credentials in your GitHub Developer Account.You’ll need the following information to set up your GitHub App with Paragon Connect:
Under Integrations > Connected Integrations > GitHub > App Configuration > Configure, fill out your credentials from your developer app in their respective sections:
Client ID: Found under Settings > Developer settings > {YOUR APP} > Client ID on your GitHub App page.
Client Secret: Found under Settings > Developer settings > {YOUR APP} > Client Secret on your GitHub App page.
Leaving the Client ID and Client Secret blank will use Paragon development keys.
Once your users have connected their GitHub account, you can use the Paragon SDK to access the GitHub API on behalf of connected users.See the GitHub REST API documentation for their full API reference.Any GitHub API endpoints can be accessed with the Paragon SDK as shown in this example.
Copy
Ask AI
// You can find your project ID in the Overview tab of any Integration// Authenticate the userparagon.authenticate(<ProjectId>, <UserToken>);// Get issues associated with a repositoryparagon.request("github", "/repos/{owner}/{repo}/issues", { method: "GET"});// Create a comment on an issueparagon.request("github", "/repos/{owner}/{repo}/issues/{issue_number}/comments", { method: "POST", body: { body: "Looks good to me!" }});// Specify labels for an issueparagon.request("github", "/repos/{owner}/{repo}/issues/{issue_number}/labels", { method: "PUT", body: { labels: [ 'bug', 'enhancement' ] }});
Webhook triggers can be used to run workflows based on events in your users’ GitHub account. For example, you might want to trigger a workflow whenever new issues are created in GitHub to sync your users’ GitHub issues to your application in real-time.You can find the full list of Webhook Triggers for GitHub below: