Created
February 12, 2020 00:41
-
-
Save jacobpedd/aad1ae4a8b7435565a911a891fd81b0e to your computer and use it in GitHub Desktop.
Test for firebase function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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