Chilkat Online Tools

Delphi (ActiveX) / Marketplacer SELLER API / Seller Search by Business Name

Back to Collection Items

var

begin
http.BasicAuth := 1;http.Login := '{{username}}';http.Password := '{{password}}';json.UpdateString('query','query SellerSearchByBusinessName($pageSize: Int $endCursor: String $attributes: SellerSearchInput ){' + #10 + '  sellerSearch (attributes: $attributes)' + #10 + '  {' + #10 + '    sellers(first: $pageSize after: $endCursor){' + #10 + '      edges{' + #10 + '        node{' + #10 + '          id' + #10 + '          businessName ' + #10 + '        }' + #10 + '      }' + #10 + '			pageInfo{' + #10 + '				hasNextPage' + #10 + '				endCursor' + #10 + '			}' + #10 + '    }' + #10 + '  }' + #10 + '}');json.UpdateString('variables','{' + #10 + '  "pageSize": 20,' + #10 + '  "endCursor": null,' + #10 + '  "attributes": {' + #10 + '    "businessName": "Cell Phones"' + #10 + '  }' + #10 + '}');success := http.HttpJson('POST','https://bestfriendbazaar.com/graphql',json.ControlInterface,'application/json',resp.ControlInterface);

Curl Command

curl -X POST
	-u '{{username}}:{{password}}'
	-H "MARKETPLACER-API-KEY: {{api_key}}"
	-H "Content-Type: application/json"
	--data-raw '{"query":"query SellerSearchByBusinessName($pageSize: Int $endCursor: String $attributes: SellerSearchInput ){\n  sellerSearch (attributes: $attributes)\n  {\n    sellers(first: $pageSize after: $endCursor){\n      edges{\n        node{\n          id\n          businessName \n        }\n      }\n\t\t\tpageInfo{\n\t\t\t\thasNextPage\n\t\t\t\tendCursor\n\t\t\t}\n    }\n  }\n}","variables":"{\n  \"pageSize\": 20,\n  \"endCursor\": null,\n  \"attributes\": {\n    \"businessName\": \"Cell Phones\"\n  }\n}"}'
https://bestfriendbazaar.com/graphql

Postman Collection Item JSON

{
  "name": "Seller Search by Business Name",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "MARKETPLACER-API-KEY",
        "value": "{{api_key}}",
        "type": "text"
      },
      {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
      }
    ],
    "body": {
      "mode": "graphql",
      "graphql": {
        "query": "query SellerSearchByBusinessName($pageSize: Int $endCursor: String $attributes: SellerSearchInput ){\n  sellerSearch (attributes: $attributes)\n  {\n    sellers(first: $pageSize after: $endCursor){\n      edges{\n        node{\n          id\n          businessName \n        }\n      }\n\t\t\tpageInfo{\n\t\t\t\thasNextPage\n\t\t\t\tendCursor\n\t\t\t}\n    }\n  }\n}",
        "variables": "{\n  \"pageSize\": 20,\n  \"endCursor\": null,\n  \"attributes\": {\n    \"businessName\": \"Cell Phones\"\n  }\n}"
      }
    },
    "url": {
      "raw": "{{base_url}}",
      "host": [
        "{{base_url}}"
      ],
      "path": null
    },
    "description": null
  },
  "response": [
  ]
}