fcm-d 0.2.0

Firebase Cloud Messaging library written on D language


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

FCM Service

Firebase Cloud Messaging library written on D language

How to use

import std.json;
import std.stdio;

import fcm;

void main {
	FCMService fcm = FCMService.newInstance("api key");

	auto request = FCMRequest();
	request.registrationIds ~= "device token";

	JSONValue json;
	json["field1"] = "foo";
	json["field2"] = 42.0;
	json["field3"] = true;

	request.data = json;

	FCMResponse response = fcm.request(request);

	writeln("response: ", response);
}

TODO

[0.2.0]

  • Changed API, now use FCMService.newInstance("api key") to get FCM instance

[0.1.0]

[Backlog]

  • add unit tests
  • add screens
  • add documentation
  • add RxD sample
  • XMPP protocol
Authors:
  • Eugene Sakara
Dependencies:
requests, asdf
Versions:
0.2.0 2019-May-24
0.1.0 2019-May-18
~master 2019-May-24
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total

Score:
0.5
Short URL:
fcm-d.dub.pm