code: public function getShakeInfo($ticket, $needPoi = null)
      {
          $params = [
              'ticket' => $ticket,
          ];
  
          if ($needPoi !== null) {
              $params['need_poi'] = intval($needPoi);
          }
  
          return $this->parseJSON('json', [self::API_GET_SHAKE_INFO, $params]);
      }
docs: Get shake info.
  
  @param string $ticket
  @param int    $needPoi
  
  @return \EasyWeChat\Support\Collection