invertase / firebase-extensions

A collection of Firebase Extensions built by Invertase.
https://extensions.invertase.dev
Apache License 2.0
28 stars 12 forks source link

[storage-image-processing-api] Calling Image Processing API with Cloud Functions for Firebase client SDKs #59

Open gmarizy opened 1 year ago

gmarizy commented 1 year ago

Given the working url:

"https://[my project id here].cloudfunctions.net/ext-image-processing-api-handler/process?operations=${jsonEncode(operations)}"

I didn't succeeded to write the equivalent call with Flutter Firebase Cloud Functions for Firebase client SDK. I tried variation of this snippet with no avail:

FirebaseFunctions.instanceFor()
        .httpsCallable("ext-image-processing-api-handler")
        .call({"operations": jsonEncode(operations)});

What is the way to call Image Processing API from Cloud Functions for Firebase client SDKs ?