Skip to content

guglielmino/pushetta-net-library

Repository files navigation

pushetta.com

Microsoft .Net client for Pushetta

PushettaClient is the official client for sending and receiving notification with Pushetta service (http://www.pushetta.com). This client currently works on Windows 10 (Univesal App) and Framework 4.5 CLR applications.

Installation

From sources

Clone the repository and link the project for the used framework.

From NuGet Search for PushettaClient on NuGet official directory and install it.

Usage

Sending notifications it's really simple, all You need it's an Api Key, taken from Pushetta's Dashboard and a Channel. The latter can be created here http://www.pushetta.com/my/channels/create/

	IPushettaSender pushetta = new PushettaSender(new PushettaConfig()
	{
                APIKey = "APY_KEY"
    });
	pushetta.SendMessage("CHANNEL_NAME", new PushMessage("Hello Pushetta World!"));

Receiving notifications it's almost simple as sending it.

	receiver = new PushettaReceiver(new PushettaConfig()
	{
			APIKey = "APY_KEY"
    });

	receiver.OnMessage += OnMessageReceived;
	receiver.SubscribeChannel(txtChannel.Text);

	private void OnMessageReceived(object sender, MessageEventArgs e)
	{
		// In e.Message there is paypload of notification
    
	}

About

Pushetta client for Microsoft .Net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages