Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monkeymars/urban-airship-codeigniter-library
A simple UA library for CI. It's still very raw.
https://github.com/monkeymars/urban-airship-codeigniter-library
Last synced: 3 months ago
JSON representation
A simple UA library for CI. It's still very raw.
- Host: GitHub
- URL: https://github.com/monkeymars/urban-airship-codeigniter-library
- Owner: monkeymars
- Fork: true (caioiglesias/Urban-Airship-CodeIgniter-library)
- Created: 2012-11-14T02:31:47.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2011-08-04T10:06:24.000Z (over 13 years ago)
- Last Synced: 2023-04-01T16:02:58.918Z (almost 2 years ago)
- Language: PHP
- Homepage: twitter.com/caioiglesias
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Urban Airship CodeIgniter Library
I basically wrapped up the code available here into a library: https://support.urbanairship.com/customer/portal/articles/91072-simple-push-using-php-amp-the-api
## Requirements
1. PHP 5.1+
2. CodeIgniter 2.0.0+
3. cURL## Usage
// Load the library
$this->load->library('urban_airship');
// Setup your json payload variables
$tokens = array(
"b0ef35cdc226a3fdc4d3662555ca870df5201a6caced3ec960e57c01edb57aa8",
"50ef35cdc226a3fdc4d3662555ca870df5201a6caced3ec960e57c01edb57aa2",
"60ef35cdc226a3fdc4d3662555ca870df5201a6caced3ec960e57c01edb57aa9"
)
$aps = array(
'badge' => '+1',
'alert' => 'Push Test'
'sound' => 'default'
);
// Send the push notification
$http_code = $this-> urban_airship -> push($tokens, $aps);// Http code is here
echo $http_code
This is just for the push, the rest is still coming. I appreciate the help.