yrizos/theansr

此包已被 弃用 且不再维护。未建议替换包。

theansr.com API 客户端

dev-master 2018-06-25 06:40 UTC

This package is auto-updated.

Last update: 2022-12-23 20:44:33 UTC


README

API 文档: https://github.com/theansr/api

支持的端点

  • GET /accounts/get_balance
  • POST /calls
  • POST /sms

安装

$ composer require yrizos/theansr

用法

<?php 

$client = new \Ansr\Client(
    'api_key',
    'password'
);

$response = $client->createCall(
    'from',
    'to',
    'answer_url',   
);