Skip to content

Instantly share code, notes, and snippets.

View AriesTriputranto99's full-sized avatar
💭
I may be slow to respond.

AriesTriputranto AriesTriputranto99

💭
I may be slow to respond.
View GitHub Profile

This Cookie Statement was update on 20.02.2023

Cookie Statement for cla-assistant.io

This Cookie Statement describes how SAP (hereinafter also “We”, “Our”) uses cookies and similar technologies to collect and store information when you visit cla-assistant.io. SAP’s Privacy Statement applies in addition to this Cookie Statement. SAP’s Privacy Statement informs you about the way SAP uses, stores and protects personal data collected. It also informs you of your data protection rights and how to exercise them. We recommend that you read SAP’s Privacy Statement here.

What are Cookies and similar technologies?

Cookies are small files placed on your device (computer, tablet or smartphone). When you access a website, a cookie is placed on your device and it will send information to the party that placed the cookie. There are other technologies at perform a similar function to cookies. These include inter alia web beacons, clear gi

const fetch = require('node-fetch');
async function run(*) {
let username = "AriesTriputranto";
let password = "YOUR APP PASSWORD";
let authBasic = new Buffer(username + ':' + password).toString('base64');
let session = await (await fetch('https://jmap.fastmail.com/.well-known/jmap', {
headers: {
"Authorization": "Basic " + authBasic
}
})).json(*);
{
"percentDifference": null,
"quoteResponse": {
"contextSlot": 218677659,
"inAmount": "227021867590",
"inputMint": "mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So",
"otherAmountThreshold": "648529293826789",
"outAmount": "649178472299088",
"outputMint": "5tdfToRGBGRqbPaBq8TAtDncgy7ejM26TwRfcmVaNpqy",
"platformFee": null,