dialogue_wise 0.1.4

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

Dialogue Wise #

Dart Package to integrate Dialogue Wise Headless CMS #

Dialogue Wise is a Headless CMS that Intelligently Generates & Delivers Content to Multiple Platforms. Read More.

Prerequisite #

You will need Dart installed on your machine. You can install it from here.

Get content from Dialogue Wise #

Getting content is pretty simple. All you need to do is to create a DialogueWiseRequest and then call the getDialogue method.

var request = new DialogueWiseRequest();
request.slug = '[Your Slug]';
request.apiKey = '[Your API Key]';
request.emailHash='[Your Email Hash]';

var dialogueWiseService = new DialogueWiseService(new HttpClient()); 
Map res = await dialogueWiseService.getDialogue(request);

0.1.4 #

Formatted files.

0.1.3 #

Minor fixes.

0.1.2 #

Added comments and minor fixes.

0.1.1 #

Updated ReadMe and minor fixes.

0.1.0 #

Initial Version

example/example.dart

import 'dart:io';
import 'package:dialogue_wise/dialogue_wise.dart';

void main() async{
//Prepare the payload
var request = new DialogueWiseRequest();
request.slug = 'hero-section';
request.apiKey = 'b1266377591c4f2a9494c3abdd2cac5381D6Z825D26CEBAE8B6rn';
request.emailHash='/kgmM46s1xC56BOFWRZp4j+0bdU19URpXdNT9liAX50=';

// Call the Dialogue Wise API
var dialogueWiseService = new DialogueWiseService(new HttpClient()); 
Map res = await dialogueWiseService.getDialogue(request);

//Print the Output to Console
print(res);

}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  dialogue_wise: ^0.1.4

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:dialogue_wise/dialogue_wise.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Jul 9, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13

Analysis suggestions

Package not compatible with runtime flutter-web on web

Because of the import of dart:io via the import chain package:dialogue_wise/dialogue_wise.dartdart:io

Package not compatible with runtime web

Because of the import of dart:io via the import chain package:dialogue_wise/dialogue_wise.dartdart:io

Health issues and suggestions

Document public APIs. (-1 points)

24 out of 24 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
crypto ^2.1.5 2.1.5
intl ^0.16.1 0.16.1
Transitive dependencies
charcode 1.1.3
collection 1.14.13 1.15.0-nnbd
convert 2.1.1
path 1.7.0
typed_data 1.2.0 1.3.0-nnbd