Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "WordPressKit",
url: "https://github.com/user-attachments/files/21582269/WordPressKit.zip",
checksum: "cbfe79d7a4244302d308027ff329f1ccdfd1c604d990871359764eca567ea86f"
url: "https://github.com/user-attachments/files/22280239/WordPressKit.zip",
checksum: "a2d46f654d72b367359606fefde01d43e44bee2034bfd079fa6334c378cfdb16"
),
]
)
7 changes: 7 additions & 0 deletions Sources/CoreAPI/WordPressOrgRestApi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ public final class WordPressOrgRestApi: NSObject {
await perform(.get, path: path, parameters: parameters, options: options)
}

public func get(
path: String,
parameters: [String: Any]? = nil
) async -> WordPressAPIResult<Data, WordPressOrgRestApiError> {
await perform(.get, path: path, parameters: parameters)
}

public func post<Success: Decodable>(
path: String,
parameters: [String: Any]? = nil,
Expand Down