This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from playwright.sync_api import sync_playwright | |
| from playwright_stealth import Stealth | |
| import time | |
| with sync_playwright() as p: | |
| browser = p.chromium.launch(headless=False) | |
| stealth_config = Stealth() | |
| context = browser.new_context( | |
| user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PATH: [GET] /organisations/org_1 | |
| REQUEST BODY: null | |
| ----v | |
| RESPONSE CODE: 200 | |
| RESPONSE BODY: { | |
| "id": "org_1", | |
| "name": "testorg", | |
| "specialities": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PATH: [GET] /workers/w_1/public?start_day=2018-05-07T00:00:00Z&number_of_days=3 | |
| REQUEST BODY: null | |
| ----v | |
| RESPONSE CODE: 200 | |
| RESPONSE BODY: { | |
| "id": "w_1", | |
| "name": "John Snow Beta", | |
| "title": "Dr.", | |
| "description": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PATH: [POST] /organisations/org_1/workers/filter/secure | |
| REQUEST BODY: {} | |
| ----v | |
| RESPONSE CODE: 200 | |
| RESPONSE BODY: [ | |
| { | |
| "id": "w_1", | |
| "auth0_id": "JohnSnowAuth0MockID", | |
| "name": "John Snow Beta", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PATH: [POST] /organisations/org_1/appointments | |
| REQUEST BODY: {"query":"","states":null,"order_by":"appointment_time","order_direction":"desc","create_time_after":null,"create_time_before":null,"appointment_time_after":null,"appointment_time_before":null,"limit":null,"page":null} | |
| ----v | |
| RESPONSE CODE: 200 | |
| RESPONSE BODY: [ | |
| { | |
| "id": "ap_6", | |
| "state": "VERIFIED", | |
| "worker": null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "calculation": [ | |
| { | |
| "paid_to": "supplier", | |
| "paid_by": "customer", | |
| "description": "Commissionable fare", | |
| "_type": "AbsoluteAmount", | |
| "tags": [ | |
| "customer_fare", | |
| "full_fare", | |
| "commissionable_fare" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST -H "Content-Type: application/json" -d '{ | |
| "from_location": { | |
| "latitude": 1.3278241, | |
| "longitude": 103.7300089, | |
| "zip_code": "W1J0DX", | |
| "poi_id": null | |
| }, | |
| "to_location": { | |
| "latitude": 1.350091, | |
| "longitude": 103.700569, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "from_location": { | |
| "latitude": 1.3278241, | |
| "longitude": 103.7300089, | |
| "zip_code": null, | |
| "poi_id": null | |
| }, | |
| "to_location": { | |
| "latitude": 1.350091, | |
| "longitude": 103.700569, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <env:Envelope xmlns:env=\'http://schemas.xmlsoap.org/soap/envelope/\'><env:Header></env:Header><env:Body> | |
| <QuotationResponse xmlns="http://www.haulmont.com/sherlock/adler"> | |
| <responseCode>OK</responseCode> | |
| <pickupStatistics> | |
| <asap>true</asap> | |
| <delay>5</delay> | |
| </pickupStatistics> | |
| <price> | |
| <net>12.60</net> | |
| <taxTotal>0</taxTotal> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def mergesort(a): | |
| mergesort2(a,0,len(a)-1) | |
| return a | |
| def mergesort2(a,begin,end): | |
| if end-begin<1: | |
| return |
NewerOlder