Skip to content

masaharu-suizu/php-instapaper-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Instapaper API Client

A PHP package for interacting with the Instapaper API. This package provides a simple and intuitive way to interact with Instapaper's full API.

Requirements

Installation

$ composer require masaharu-suizu/php-instapaper-api-client

Usage

Sample code.

<?php

use Instapaper\Client;

require_once __DIR__ . '/vendor/autoload.php';

$oauthConsumerId     = getenv('OAUTH_CONSUMER_ID');
$oauthConsumerSecret = getenv('OAUTH_CONSUMER_SECRET');
$username            = getenv('USERNAME');
$password            = getenv('PASSWORD');

$instapaper = new Client($oauthConsumerId, $oauthConsumerSecret);

if (! $instapaper->login($userName, $password)) {
    var_dump("Login failed");
    exit;
}

$bookmarks = $instapaper->getBookmarks();
var_dump($bookmarks);

Regarding the methods in Client, please refer to wiki.

License

This package is open-sourced software licensed under the MIT license.

Author

  • Masaharu Suizu

API Documentation

For more details about the Instapaper API, please refer to the official Instapaper API documentation.

About

This is PHP package. This package provides the client function for Instapaper API.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages