Skip to content

benedmunds/Laravel-Appcelerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

#Appcelerator ACS API bundle for Laravel
A Laravel bundle that is a simple port of the Appcelerator ACS Javascript SDK to PHP

##Setup Install the bundle

$ php artisan bundle:install appcelerator

Include it in application/bundles.php

return array('appcelerator');

##Usage In your routes.php simply start the bundle, set your login info, and call the API

Route::get('appcelerator/statuses', function()
{
	$app_key  = '123';
	$email    = 'ben.edmunds@gmail.com';
	$password = '12345678';

	Bundle::start('appcelerator');

	$data = array(
		'where' => json_encode(array('user_id' => '4f9eb57a0020440def0056d3')),	
	);

	$output = Appcelerator\Appcelerator::init($app_key, $email, $password)
	                                     ->send_request('statuses/query.json', 'GET', $data);

	print_r($output);
	exit;
});


Route::get('appcelerator/create_status', function()
{
	$app_key  = '123';
	$email    = 'ben.edmunds@gmail.com';
	$password = '12345678';
	
	Bundle::start('appcelerator');

	$data = array(
		'message' => 'api test message',	
	);

	$output = Appcelerator\Appcelerator::init($app_key, $email, $password)
	                                     ->send_request('statuses/create.json', 'POST', $data);
		
	print_r($output);
	exit;
});

See the Appcelerator documentation for API details.

Bundle created by Ben Edmunds and Shealan Foreshaw for Swipe & Tap.

About

A Laravel bundle that is a simple port of the Appcelerator ACS Javascript SDK to PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages