stefanbraspenning/pushbullet-bundle

This bundle provides integration with the Pushbullet API library, allowing you to interact with the Pushbullet API from within your Symfony projects

dev-master 2015-06-14 16:32 UTC

This package is not auto-updated.

Last update: 2024-09-28 18:37:03 UTC


README

Latest Version

Installation

Step 1) Get the bundle

composer require stefanbraspenning/pushbullet-bundle

Step 2) Register the bundle

To start using the bundle, register it in your Kernel.

<?php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new SB\Bundle\PushbulletBundle\SBPushbulletBundle(),
        // ...
    );
}

Step 3) Configure the default API token to use (optional)

If you don't have an API token yet, follow this link: https://www.pushbullet.com/account. It takes you to the Pushbullet site which (if you are logged in, then scroll down) lets you generate an API token for your account.

The bundle tries to make sending payloads to Pushbullet a little easier by letting you define the API token to use beforehand.

NOTE: Setting the token beforehand is not required; you can still choose to leave the configuration empty and pass the API token of your choice when sending a payload: $pb = new Pushbullet\Pushbullet('YOUR_ACCESS_TOKEN');.

Here is an example:

# app/config/config.yml
sb_pushbullet:
    api_token: 1234 # replace with your own (see: https://www.pushbullet.com/account)

Documentation

Detailed documentation on how to access each API method can be found in the documentation of the package that this bundle integrates: Pushbullet API library