OpenAccountIndexFindRequest.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * TOP API: taobao.open.account.index.find request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2016.09.28
  7. */
  8. class OpenAccountIndexFindRequest
  9. {
  10. /**
  11. * int MOBILE = 1;int EMAIL = 2;int ISV_ACCOUNT_ID = 3;int LOGIN_ID = 4;int OPEN_ID = 5;
  12. **/
  13. private $indexType;
  14. /**
  15. * 具体值,当索引类型是 OPEN_ID 是,格式为 oauthPlatform|openId,即使用竖线分隔的组合值
  16. **/
  17. private $indexValue;
  18. private $apiParas = array();
  19. public function setIndexType($indexType)
  20. {
  21. $this->indexType = $indexType;
  22. $this->apiParas["index_type"] = $indexType;
  23. }
  24. public function getIndexType()
  25. {
  26. return $this->indexType;
  27. }
  28. public function setIndexValue($indexValue)
  29. {
  30. $this->indexValue = $indexValue;
  31. $this->apiParas["index_value"] = $indexValue;
  32. }
  33. public function getIndexValue()
  34. {
  35. return $this->indexValue;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "taobao.open.account.index.find";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. }
  48. public function putOtherTextParam($key, $value) {
  49. $this->apiParas[$key] = $value;
  50. $this->$key = $value;
  51. }
  52. }