亿嘉伟/laravel-shopee-api

Laravel 对 shopee api 的封装

0.1.2 2022-04-01 14:12 UTC

This package is auto-updated.

Last update: 2024-09-29 06:14:44 UTC


README

使用方法

首先,初始化客户端

$client = new  \Yeejiawei\LaravelShopeeApi\Client([
    'shop_id' => 'SHOP_ID',
    'access_token' => 'ACCESS_TOKEN',
]);

其次,获取节点

$chat = $client->chat();

或者使用节点中的函数

$chat = $client->chat()->getConversation(197091754292034);

当前可用的节点

聊天节点

  • getMessage
  • sendMessage
  • sendAutoreplyMessage
  • getConversations
  • getConversation
  • deleteConversation
  • getUnreadConversationCount
  • pinConversation
  • unpinConversation
  • readConversationn
  • unreadConversation
  • getOfferToggleStatus
  • setOfferToggleStatus
  • uploadImage