Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 960 Bytes

readme.md

File metadata and controls

46 lines (29 loc) · 960 Bytes

Kippt.php


API Client for Kippt.com written in PHP

Kippt

##Installation

	<?php
	require_once 'src/kippt-bootstrap.php';
	\unusorin\Kippt\Kippt::initialize('<your_user_name>', '<your_api_token>');

Usage

  • Get a specific clip

      $myClip = \unusorin\Kippt\Models\Clip::get(<clip_id>);
    
  • Get all clips from list

      $clipsArray = \unusorin\Kippt\Models\Clip::getAll(array('list'=>'/api/lists/<list_id>/'));
    
  • Add a new list

      $clip = new \unusorin\Kippt\Models\Lists();
      $clip->title = 'Some list title';
      $clip->save();
    
  • Modify existing list

      $clip = \unusorin\Kippt\Models\Clip::get(<clip_id>);
      $clip->title = 'Some new title';
      $clip->save();
    
  • Delete existing list

      $clip = \unusorin\Kippt\Models\Clip::get(<clip_id>);
      $clip->delete();
    
  • Available models:

    • Clip
    • Comment
    • Lists
    • User