Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.04 KB

File metadata and controls

37 lines (26 loc) · 1.04 KB

Sweet

Twitter API v2 for Swift

Support Swift 5.7

Support Platform for iOS macOS watchOS tvOS Linux Windows

Getting Started

Add the following dependency clause to your Package.swift:

dependencies: [
  .package(url: "https://github.com/zunda-pixel/Sweet", .upToNextMajor(from: "2.3.10")),
],
.target(
  name: "PenguinKit",
  dependencies: [
    .product(name: "Sweet", package: "Sweet"),
  ]
)

Usage

let sweet = Sweet(token: .oAuth2user(token: "token"), config: .default)
let response = try await sweet.me()
print(response.user)