GOOD SHELL MAS BOY
Server: Apache/2.4.52 (Ubuntu)
System: Linux vmi1836763.contaboserver.net 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64
User: www-data (33)
PHP: 8.4.10
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/vendor/cloudinary/cloudinary_php/tools/allocate_test_cloud.sh
#!/usr/bin/env bash

API_ENDPOINT="https://sub-account-testing.cloudinary.com/create_sub_account"

SDK_NAME="${1}"

CLOUD_DETAILS=$(curl -sS -d "{\"prefix\" : \"${SDK_NAME}\"}" "${API_ENDPOINT}")

echo ${CLOUD_DETAILS} | php -r '$c = json_decode(stream_get_contents(STDIN))->payload; printf("cloudinary://%s:%s@%s", $c->cloudApiKey, $c->cloudApiSecret, $c->cloudName);'