Skip to content

87kangsw/GitHubKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚧 Please be aware that this library is currently in progress and may undergo significant changes. Exercise caution while using it.

GitHubKit

A Swift API Client for GitHub REST & GraphQL

Features

REST

  • User
  • Activities

GraphQL

  • Contributions

Usage

This library provides simple access to various GitHub APIs. Here's an example of how you can use it to fetch user contributions:

import GithubKit

// Initialize GithubKit with your GitHub token.
let githubKit = GitHubKit(config: GitHubKitConfiguration(token: "{your_github_token}"))

do {
    // Fetch contributions for a specific user.
    let response = try await githubKit.contributions(userName: "username")

    // Use response here.
    print(response)

} catch {
    print("Failed to fetch contributions: \(error)")
}

About

A Swift API Client for GitHub REST & GraphQL

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages