2017 © Pedro Peláez
 

library telegraph-api-client

Simple Telegra.ph API PHP Client

image

ssitdikov/telegraph-api-client

Simple Telegra.ph API PHP Client

  • Tuesday, June 19, 2018
  • by ssitdikov
  • Repository
  • 1 Watchers
  • 2 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 26 % Grown

The README.md

Build Status Coverage Status Codacy Badge, (*1)

Telegra.ph API PHP Client

О продукте

Данная библиотека предназначена для работы с сервисом Telegra.ph., (*2)

Установка

Предполагается установка с использованием composer, (*3)

composer require ssitdikov/telegraph-api-client

Пример использования

Создание аккаунта

$telegraph = new TelegraphClient($client);

$account = new Account();
$account->setShortName('Test.Account');
try {
    $account = $telegraph->createAccount(
        new CreateAccountRequest($account)
    );
catch (\Exception $e) {
// ...
}

Создание страницы

$page = new Page();
$page->setTitle('Test article');
$page->setAuthorName( $account->getAuthorName() );

$link = new LinkType();
$link->setHref('https://github.com/ssitdikov');
$link->setText('Salavat Sitdikov github`s page');

$image = new ImageType();
$image->setSrc('https://telegram.org/file/811140775/1/Pc_4R_013Ow.144034/1c1eeaa592370d0b93');

$page->setContent([$link, $image,]);

$page = $telegraph->createPage(
    new CreatePageRequest($page, $account)
);

В настоящее время доступны следующие типы данных контента: ParagraphType, ImageType, LinkType, YoutubeType., (*4)

The Versions

19/06 2018

dev-master

9999999-dev

Simple Telegra.ph API PHP Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Salavat Sitdikov

api php online telegram telegraph

19/06 2018

v0.1.3

0.1.3.0

Simple Telegra.ph API PHP Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Salavat Sitdikov

api php online telegram telegraph

03/01 2018

v0.1.2

0.1.2.0

Simple Telegra.ph API PHP Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Salavat Sitdikov

api php online telegram telegraph

02/01 2018

v0.1.1

0.1.1.0

Simple Telegra.ph API PHP Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Salavat Sitdikov

api php online telegram telegraph

01/01 2018

v0.1

0.1.0.0

Simple Telegra.ph API PHP Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Salavat Sitdikov

api php online telegram telegraph