Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit bc3ed78

Browse files
committed
Add raw GET for WP.org client
1 parent 7d8c756 commit bc3ed78

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/CoreAPI/WordPressOrgRestApi.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ public final class WordPressOrgRestApi: NSObject {
103103
await perform(.get, path: path, parameters: parameters, options: options)
104104
}
105105

106+
public func get(
107+
path: String,
108+
parameters: [String: Any]? = nil
109+
) async -> WordPressAPIResult<Data, WordPressOrgRestApiError> {
110+
await perform(.get, path: path, parameters: parameters)
111+
}
112+
106113
public func post<Success: Decodable>(
107114
path: String,
108115
parameters: [String: Any]? = nil,

0 commit comments

Comments
 (0)