Skip to content

Instantly share code, notes, and snippets.

INSTEAD OF
"GET /api/purchases?username=tqdigitalpayment%40gmail.com&description=TQ+Point+Card+0.99+USD&item_code=1000718&price=100&country=AT&currency=EUR&return_url=https%3A%2F%2Fpayment.99.com%3A443%2FOnebip%2FPage%2FV2%2FBuySuccessForEn.aspx%3FOrderSerial%3D20170508001631171366112-27-1008&notify_url=https%3A%2F%2Fpayment.99.com%2FPayCenter%2FPage%2FCallBack%2FOneBipCallBack.aspx&cancel_url=https%3A%2F%2Fpayment.99.com%3A443%2FOnebip%2FPage%2FV2%2FBuyFailForEn.aspx%3FOrderSerial%3D20170508001631171366112-27-1008&remote_txid=20170508001632046461945-1021-1&signature=df806d2515b7120bf93ac9e9a702231853d2df990b283b953d8d9a42d772ed97
PASS "lang=de"
"GET /api/purchases?lang=de&username=tqdigitalpayment%40gmail.com&description=TQ+Point+Card+0.99+USD&item_code=1000718&price=100&country=AT&currency=EUR&return_url=https%3A%2F%2Fpayment.99.com%3A443%2FOnebip%2FPage%2FV2%2FBuySuccessForEn.aspx%3FOrderSerial%3D20170508001631171366112-27-1008&notify_url=https%3A%2F%2Fpayment.99.com%2FPayCenter%2FPage%2FCallBack%2FOneB
[2017-05-09T12:30:10.410Z]
'full_request' => '
* Server auth using Basic with user \'onebipivr@neomobile.com\'
> GET https://www.onebip.com/bko/subscriber/msisdn/393476232440/subscriptions HTTP/1.1
> [h] Host: www.onebip.com
> [h] Accept: */*
> [h] X-Forwarded-For: 185.42.160.150
> [h] X-Forwarded-Port: 443
> [h] X-Forwarded-Proto: https
> [h] Connection: keep-alive
http://api.spilgames.com/?container=purchase%2F5a6b425d3f57c2086d41cf67&whois=msisdn%2Fe%2Fencrypted%2F524bff0914b670669db2a93e329c8a99&mobile_phone_operator=NL%2FTele2&mobile_phone_number_enc=fa8c9bf3b698f8a30584d7f8c3e47e78&payment_id=00600349990&original_price=200&original_currency=EUR&custom%5Boriginal_price%5D=170&custom%5Boriginal_currency%5D=EUR&timestamp=1516978995&signature=4171bc7d0de7ff49c338d96a21ba6d4f73123aac17bee291b9d1de2e666fb93f
curl -X GET \
'https://sandbox.musement.com/api/v3/activities?limit=10&city_in=1' \
-H 'Accept-Language: de-DE' \
-H 'Cache-Control: no-cache' \
-H 'X-Musement-Version: 3.4.0' \
-H 'cache-control: no-cache'
curl -X GET \
https://sandbox.musement.com/api/v3/activities/51eb549f-d9cc-4b47-aaef-0f74c5a80cbd \
-H 'Accept-Language: de-DE' \
@aurelienlair
aurelienlair / composer_require.sh
Last active June 15, 2020 17:45
Composer require security package
composer require security
@aurelienlair
aurelienlair / install_testcafe.sh
Created June 16, 2020 21:47
Install testcafe with NPM
npm install --save-dev testcafe
Request failed with status 500 due to unknown error: An unknown server-side error occurred while processing the command. Original error: No Chromedriver
found that can automate Chrome '83.0.4103'. You could also try to enable automated chromedrivers download server feature. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more details
$ appium --allow-insecure chromedriver_autodownload
async lookForUniqueExperiences() {
const findDuplicates = (arr) =>
arr.filter((item, index) => arr.indexOf(item) !== index);
let activitiesTitle = [];
const activitiesElements = await this.mobileBrowser.$$(
"[data-test=attractionPage__catalogCards-box] [data-test=ActivityCard__title] a"
);
@aurelienlair
aurelienlair / venue.js
Created May 9, 2021 20:41
Venue page object
class Venue {
urls = {
"Louvre museum": "https://www.musement.com/uk/paris/louvre-museum-v/",
"Eiffel tower": "https://www.musement.com/uk/paris/eiffel-tower-v/",
};
async open(venueName, deviceType) {
opts["capabilities"] = capabilities[deviceType.toLowerCase()];
this.mobileBrowser = await wdio.remote(opts);
await this.mobileBrowser.setTimeout({ pageLoad: 10000 });