Commit 9614da7c authored by Jose Blaya's avatar Jose Blaya
Browse files

Send type subscription as parameter

parent 8cc951f8
......@@ -218,7 +218,11 @@ class PIAWebServices: WebServices, ConfigurationAccess {
400: .badReceipt
]
req(nil, .get, endpoint, useAuthToken: false, nil, status, JSONRequestExecutor() { (json, status, error) in
let parameters: JSON = [
"type": "subscription"
]
req(nil, .get, endpoint, useAuthToken: false, parameters, status, JSONRequestExecutor() { (json, status, error) in
if let knownError = self.knownError(endpoint, status, errors) {
callback?(nil, knownError)
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment