Skip to content

Instantly share code, notes, and snippets.

@jacobpedd
Created February 12, 2020 00:41
Show Gist options
  • Save jacobpedd/aad1ae4a8b7435565a911a891fd81b0e to your computer and use it in GitHub Desktop.
Save jacobpedd/aad1ae4a8b7435565a911a891fd81b0e to your computer and use it in GitHub Desktop.
Test for firebase function
import 'package:cloud_functions/cloud_functions.dart';
const String ENDPOINT = "https://us-central1-pickup-c1eb4.cloudfunctions.net/getItems";
Future test() async {
final HttpsCallableResult resp = await CloudFunctions.instance.getHttpsCallable(
functionName: 'getItems',
).call(<String, dynamic>{
"store_id":"0"
});
print(resp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment