dialogue_wise 0.1.6
dialogue_wise: ^0.1.6 copied to clipboard
Dialogue Wise is a headless CMS. This is the client for any of your dart or flutter applications.
example/example.dart
import 'package:http/http.dart' as http;
import 'package:dialogue_wise/dialogue_wise.dart';
void main() async {
//Prepare the payload
var request = new DialogueWiseRequest();
request.slug = 'my-fab-food-store';
request.apiKey = '82e2934400364fab877809bd9c40eefa91B93BAD81F7A1FC8FDF2DD1';
request.emailHash = 'AzLAgRn7emIb+9UUgAmJQewbrk2oLaf5D8KYMG8tHro=';
request.imageTransformation = 'mask=ellipse';
// Call the Dialogue Wise API
var dialogueWiseService = new DialogueWiseService(new http.Client());
Map res = await dialogueWiseService.getDialogue(request);
//Print the Output to Console
print(res);
}