Toonz wrote:The login process seems to be broken again lately for the Postnl app. Will have a look again, but not soon due to other commitments next week
no problem thanks in advanced !
Moderators: marcelr, TerrorSource, Toonz, TheHogNL
Toonz wrote:The login process seems to be broken again lately for the Postnl app. Will have a look again, but not soon due to other commitments next week
Toonz wrote:The login process seems to be broken again lately for the Postnl app. Will have a look again, but not soon due to other commitments next week
"receiver": [{
"shipmentType": "Pending",
"effectiveDate": "0001-01-01T00:00:00+00:00",
"key": "3SQDBN891119901-NL-xxxxAW",
"barcode": "3SQDBN891119901",
"country": "NL",
"postalCode": "xxxxAW",
"isInternational": false,
"product": null,
"description": null,
"pickup": null,
"delivery": {
"barcode": "3SQDBN891119901",
"status": "InTransit",
"phase": {
"index": null,
"message": "Shipment not yet found",
"route": null
},
"returnEligibility": null,
"firstDeliveryAttemptExpired": false,
"firstDeliveryAttemptDate": null,
"isDelivered": false,
"hasProofOfDelivery": false,
"deliveryDate": null,
"timeframe": null,
"deliveryStatusType": "Standard"
},
"rerouting": {
"barcode": "3SQDBN891119901",
"unavailabilityReason": null,
"availableOptions": {},
"rerouteInstruction": null,
"isAvailable": false,
"sponsorName": null
},
"beforeFirstDeliveryAttempt": true,
"firstDeliveryAttemptFailed": false,
"amounts": {},
"extraInformation": [],
"sender": null,
"receiver": null,
"originalReceiver": null,
"return": null,
"deliveryLocation": null,
"dimensions": null,
"multiColloPackages": [],
"notifications": [],
"generatedTitles": {
"receiver": "3SQDBN891119901",
"sender": "3SQDBN891119901"
},
"order": 0,
"trackedShipment": {
"id": 154091940,
"barcode": "3SQDBN891119901",
"postalCode": "xxxxAW",
"country": "NL",
"title": null,
"listNameKey": "receiver",
"box": "Receiver",
"status": "Delivered",
"source": "ManuallyAddedThroughWeb",
"order": null,
"key": "3SQDBN891119901-NL-xxxxAW"
},
"tripInformation": null,
"allObservations": null,
"isReturnShipment": null,
"pickUpRetailBarcode": null
},
Toonz wrote:The app isn't working at the moment. The last workaround has now also been blocked by the postnl website.
Maybe we will find another......
Toonz wrote:Good News is I have it working now fully automated with Javascript in Postman for my account. I have to test if it is still working after a few days.
glsf91 wrote:The login process has totally changed. They are using now OpenId.
Good News is I have it working now fully automated with Javascript in Postman for my account. I have to test if it is still working after a few days.
Toonz wrote:glsf91 wrote:The login process has totally changed. They are using now OpenId.
Good News is I have it working now fully automated with Javascript in Postman for my account. I have to test if it is still working after a few days.
Good job. Either send me your postman details or implement yourself in the Toon app and create a pull request on github
Looking forward to the results. Well done.
function randomStr(len) {
var ranStr = '';
var arr = "abcdefghijklmnopqrstuvwxyz0123456789";
for (var i = len; i > 0; i--) {
ranStr += arr[Math.floor(Math.random() * arr.length)];
}
return ranStr;
}
glsf91 wrote:- is there function available for doing a sha256 hash (if yes what is the name)?
glsf91 wrote:@Toonz
I now have a problem that with xmlhttprequest as it is always following a redirect. I do not want this because I need to capture something in between.
Do you know there is another way to do a POST request on the Toon (maybe with example)?
And which version of QML /QT is running in the Toon?
Toonz wrote:Alternative option: use a script file where you do your magic using curl. This file can be executed regularly via a crontab job or alternatively I can expand the tsc script to start it on request of the postnl app.
If the script saves the resulting inbox file I can pick it up in the app again.
Users browsing this forum: No registered users and 1 guest