Skip to content

Instantly share code, notes, and snippets.

<script runat="server">
Platform.Load('core', '1')
var soap = new Script.Util.WSProxy();
var clientID = 'xxx';
var clientSecret = 'yyy';
var clientBase = 'zzz';
var restURL = 'https://' + clientBase + '.rest.marketingcloudapis.com';
/* Variable declarations */
var stringifiedCreatedAssets,
var req = new Script.Util.HttpRequest(endpoint);
req.emptyContentHandling = 0;
req.retries = 2;
req.continueOnError = true;
req.setHeader("Authorization", "Bearer " + accessToken);
req.contentType = "application/json"
req.method = "PATCH";
req.postData = Stringify(payload);
var response = req.send();
@sandeepb1
sandeepb1 / auth0-passwordless.postman.json
Created August 8, 2019 20:06
Postman v2.1 Collection to perform a Passwordless verification with Auth0
{
"info": {
"_postman_id": "5e946c22-f739-4a79-b052-ec05ca61ebf8",
"name": "Auth0 Passwordless",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "1. Send Code",
"request": {
#SingleInstance force
EmptyRecycleBin()
{
MsgBox, 4,, Clear Recycle Bin?
IfMsgBox Yes
FileRecycleEmpty
}
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.