定制 wisembly/semantria-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wisembly/semantria-php

最新稳定版本:0.0.1

Composer 安装命令:

composer require wisembly/semantria-php

包简介

Semantria API client built on top of Guzzle 3

README 文档

README

PHP SDK for Semantria API (http://semantria.com).

This SDK is NOT official, heavily inspired by intercom-php and by official Semantria PHP SDK

We developped and maintain this library for our own usage and released it open source (see LICENCE.md) if it could help. Semantria and its API belongs to Semantria.

Basic usage

Remember to include the Composer autoloader in your application:

<?php
require_once 'vendor/autoload.php';

// Application code...

Configure your access credentials when creating a client:

<?php
use Semantria\SemantriaAuthClient;

$semantria = SemantriaAuthClient::factory(array(
    'consumer_key'      => 'my-consumer-key',
    'consumer_secret'   => 'my-consumer-secret',
    'application_name'  => 'my-app',
    'use_compression'   => false
));

$semantria->addDocument([
    'id'    => 'foo',
    'text'  => 'This method queues document onto the server for analysis. Queued document analyzes individually and will have its own set of results. If unique configuration ID provided, Semantria uses settings of that configuration during analysis, in opposite the primary configuration uses. Document IDs are unique in scope of configuration. If the same ID appears twice, Semantria overrides existing document with the new Data.'
]);

$semantria->getDocument(['document_id' => 'foo']);

Testing

Run bin/phpunit

Resources

Resources this API supports:

Uri Methods
https://api.semantria.com/configurations GET
https://api.semantria.com/documents GET POST

Licence

See LICENCE file.

统计信息

  • 总下载量: 5.75k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 14
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固