2017 © Pedro Peláez
 

library laravelicious

image

tr0n/laravelicious

  • Monday, January 19, 2015
  • by tr0n
  • Repository
  • 1 Watchers
  • 4 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravelicious: A Delicious Laravel package.

This is a Laravel package that wraps all the Delicious API methods., (*1)

Delicious API docs page, (*2)

Installation

Require this package with composer using the following command:, (*3)

composer require tr0n/laravelicious., (*4)

Configuration

First, you need to add the auth params in the config, to do this you will need to publish the config file first. Use the following command:, (*5)

php artisan config:publish tr0n/laravelicious, (*6)

After that, a config file named general.php is generated inside the /app/config/packages/tr0n/laravelicious/ folder. Add the user and password parameters inside this file., (*7)

Usage

All the available Delicious API calls are mapped., (*8)

For example:, (*9)

Laravelicious::add()

Add a new post to Delicious., (*10)

Arguments

Type Name Description
array $params (see below)
string $params['url'] The url of the item (required).
string $params['description'] The description of the item (required).
string $params['extended'] Notes for the item.
array $params['tags'] Tags for the item.
string $params['dt'] Datestamp of the item (format “CCYY-MM-DDThh:mm:ssZ”). Requires a LITERAL “T” and “Z” like in ISO8601 at http://www.cl.cam.ac.uk/~mgk25/iso-time.html for Example: 1984-09-01T14:21:31Z.
bool $params['replace'] Don’t replace post if given url has already been posted (Default to false).
bool $params['shared'] Make the item private (Default to true).

Returns

An associative array With 'success', 'message' and 'url' keys., (*11)

All the methods follow the same structure. The arguments are passed as array, depending on the method some are optional and some required, this way we are able to pass more flexibly the arguments that we want., (*12)

Same for returning values. All methods returns an array with a field 'success' with true on success and false on failure, a 'message' field parsed from the xml response (if not exists on the delicious.com response, the field will go empty)., (*13)

When there are trouble connecting to delicious.com, a DeliciousConnectionException will be thrown with some details about the attempts, the url and a message., (*14)

The Versions

19/01 2015

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Toni Oriol

19/01 2015

0.1

0.1.0.0

  Sources   Download

The Requires

 

by Toni Oriol