idxdmp 2.0.0 copy "idxdmp: ^2.0.0" to clipboard
idxdmp: ^2.0.0 copied to clipboard

IDX DMP flutter SDK.

idxdmp #

IDX DMP flutter SDK

Getting Started #

import 'package:idxdmp/idxdmp.dart';

Future<void> run() async {
  var idxdmpPlugin = Idxdmp();

  try {
    var dmpIsInit = await idxdmpPlugin.initSdk("PROVIDER_ID", 'My flutter app') ?? false;

    if (dmpIsInit) {
      await idxdmpPlugin.sendEvent(<String, String>{
        "url": "your-page-url",
        "title": "Page title",
        "domain": "your-site-domain",
        "author": "Article authour",
        "category": "Article category",
        "description": "Article description",
        "tags": "Article tag1, Article tag 2"
      });

      String? definitionIds = await idxdmpPlugin.getDefinitionIds() ?? "";
      String? userId = await idxdmpPlugin.getUserId() ?? "";

      var customTargeting = {
        'dxseg': definitionIds,
        'dxu': userId,
      };
    }
  } on PlatformException {
  }
}
1
likes
0
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

IDX DMP flutter SDK.

Homepage

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on idxdmp

Packages that implement idxdmp