searchify/php-sdk

dev-master 2013-04-10 17:00 UTC

This package is not auto-updated.

Last update: 2024-09-14 12:47:58 UTC


README

版本 2.x

警告:不自动向下兼容。 此版本将库中的几乎所有类名都进行了重命名。

可能,您只需应用以下更改

  • 包含 indextank.php 文件而不是 indextank_client.php
  • 将类 ApiClient 重命名为 Indextank_Api

以下是重命名了名称的类的列表

  • ApiClient --> Indextank_Api

  • IndexClient --> Indextank_Index

  • ApiResponse --> Indextank_Response

  • 所有异常类都继承自 Indextank_Exception

  • InvalidResponseFromServer --> Indextank_Exception_InvalidResponseFromServer

  • TooManyIndexes --> Indextank_Exception_TooManyIndexes

  • IndexAlreadyExists --> Indextank_Exception_IndexAlreadyExists

  • IndexDoesNotExist --> Indextank_Exception_IndexDoesNotExist

  • InvalidQuery --> Indextank_Exception_InvalidQuery

  • InvalidDefinition --> Indextank_Exception_InvalidDefinition

  • Unauthorized --> Indextank_Exception_Unauthorized

  • InvalidUrl --> Indextank_Exception_InvalidUrl

  • HttpException --> Indextank_Exception_HttpException

文档

[http://indextank.com/documentation/php-client](查看此客户端的更新文档)