Skip to content

Open GDPR Request Status

Can Soykarafakılı edited this page Aug 30, 2018 · 8 revisions

The Status Endpoint of the Open GDPR API specification should return the current state of a request based on the requestId provided.

To make a request to the Status Endpoint, you should use OpenGDPRStatusClient.

Objective-C:

#import "OpenGDPRStatusClient.h"

@interface ViewController () <OpenGDPRStatusDelegate>
...
....
....
...
@end

...
....
    OpenGDPRStatusClient *client = [[OpenGDPRStatusClient alloc] init];
    [client fetchRequestStatusWithDelegate:self withRequestID:@"YOUR REQUEST ID HERE"];
....
...

Swift:

...
....
    let client = OpenGDPRStatusClient()
    client.fetchRequestStatus(with: self, withRequestID: "YOUR REQUEST ID HERE")
....
...

Objective-C:

#pragma mark OpenGDPRStatusDelegate

- (void)success:(StatusResponseModel *)model
{
    // Handle success here
}

- (void)fail:(NSError *)error
{
    // Handle fail here
}

Swift:

extension ViewController : OpenGDPRStatusDelegate
{
    func success(_ model: StatusResponseModel!)
    {
        // Handle success here
    }
    
    func fail(_ error: Error!)
    {
        // Handle fail here
    }
}

<- Open GDPR Request             -> Open GDPR Cancellation

Clone this wiki locally