Skip to content

Instantly share code, notes, and snippets.

@taurgis
taurgis / postman-ocapi-session-bridge.json
Last active July 27, 2022 17:37
OCAPI: Session Bridge Example (Guest token)
{
"info": {
"_postman_id": "fbba8172-d84a-42bd-ae58-4cb5a4ce2e34",
"name": "OCAPI: Session Bridge",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "976887"
},
"item": [
{
"name": "1. Get OAuth2 client token",
@taurgis
taurgis / JWT oAuth Example.postman_collection.json
Last active October 1, 2023 00:08
Salesforce B2C Commerce Cloud: JWT oAuth Example
{
"info": {
"_postman_id": "05d3aa62-f282-43f6-ad9c-3149f2da531a",
"name": "JWT oAuth Example",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "976887"
},
"item": [
{
"name": "1. Download JS for Postman",
@taurgis
taurgis / UnlimitedArray.js
Last active June 20, 2021 19:08
UnlimitedArray
/**
* A wrapper around a standard array supported by Salesforce Commerce Cloud B2C
* to circumvent the 20.000 items quota limitation.
*
* WARNING: As this circumvents the quota limitation, you are open to high
* resource usage and possibly out of memory exceptions.
*/
function UnlimitedArray() {
const listContainer = new Array();
listContainer.push(new Array());