首页 > 编程知识 正文

支付接口对接教程片,api接口对接流程

时间:2023-05-06 08:52:59 阅读:197329 作者:462

创建应用程序,获取两个密匙。
https://www.shutterstock.com/account/developers/apps

composer require shutterstock/api

public function tests(){ require_once ROOT_PATH . '/vendor/autoload.php'; $client = new ShutterstockApiClient('rAM5LPelwV9XuxS3GDKK0py8L3O6m55W', 'VAvU5Zm6AK3GAGdR'); // perform an image search for puppies $imageResponse =$client->get('images/search', array('query' => 'puppies'));// retrieve details for a handful of image ids// $imageResponse = $client->get('images', array('id' => array(1, 2, 3)));// create a lightbox// $client->post('images/collections', array('name' => 'Lightbox Name Here'));// $imageResponse = $client->get('images', array('id' => array(1, 2, 3))); if ($imageResponse->getStatusCode() != 200) { // error handler } $images = $imageResponse->getBody()->jsonSerialize()['data']; dd($images);// etc }

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。