This repository was archived by the owner on Sep 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Sources/WordPressKit/Services Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ let package = Package(
1111 targets: [
1212 . binaryTarget(
1313 name: " WordPressKit " ,
14- url: " https://github.com/user-attachments/files/20106710 /WordPressKit.zip " ,
15- checksum: " 718a32f677c5ce49bd69f7cb0c8605993370f423aa8f088deab99a6f40dc45ac "
14+ url: " https://github.com/user-attachments/files/20123946 /WordPressKit.zip " ,
15+ checksum: " e7905c7d063682c3a3433b4b36578169081c74895db02ec55ec8de2745c799ef "
1616 ) ,
1717 ]
1818)
Original file line number Diff line number Diff line change @@ -195,11 +195,13 @@ public class SubscribersServiceRemote: ServiceRemoteWordPressComREST {
195195 /// Example: https://public-api.wordpress.com/wpcom/v2/sites/239619264/subscribers/individual?subscription_id=907116368
196196 public func getSubsciberDetails(
197197 siteID: Int ,
198- subscriberID: Int
198+ subscriberID: Int ,
199+ type: String = " email "
199200 ) async throws -> GetSubscriberDetailsResponse {
200201 let url = self . path ( forEndpoint: " sites/ \( siteID) /subscribers/individual " , withVersion: . _2_0)
201202 let query : [ String : Any ] = [
202- " subscription_id " : subscriberID
203+ " subscription_id " : subscriberID,
204+ " type " : type
203205 ]
204206
205207 let decoder = JSONDecoder ( )
@@ -239,6 +241,12 @@ public class SubscribersServiceRemote: ServiceRemoteWordPressComREST {
239241 type: GetSubscriberStatsResponse . self
240242 ) . get ( ) . body
241243 }
244+
245+ // MARK: POST Delete Subscriber
246+
247+ public func deleteSubscriber( ) {
248+
249+ }
242250}
243251
244252extension SubscribersServiceRemote . SubsciberBasicInfoResponse {
You can’t perform that action at this time.
0 commit comments