Navigation

  • index
  • next |
  • previous |
  • eContext SDK PHP 0.1.5 documentation »
  • eContext\Categories\Density »
eContext SDK PHP 0.1.5 documentation

Table Of Contents

  • Introduction
  • Installation
  • Quickstart
  • eContext\Client
  • eContext\Categories\Density
    • __construct
    • setData
    • search
    • eContext\Categories\Result
  • eContext\Classify
  • eContext\Keywords\Describe\Describe
  • eContext\Keywords\Search\Search
  • eContext\Result
  • Changelog
  1. Docs
  2. eContext\Categories\Density
  3. search

search¶

Run a set of keywords through the eContext API Categories Density search and return a result set

Description¶

public eContext\Categories\Result Density::search( [ $concurrency = 1 ] )

Parameters¶

$concurrency
An optional parameter that specifies how many concurrent asynchronous calls should be run at once.

Return Values¶

Returns a eContext\Categories\Result object containing possible eContext API Category matches for the keywords specified in this run.

Examples¶

Example #1¶

Provide a list of keywords for the client to search using Categories Density search

$keywords = [
    'hotels',
    'facebook',
    'youtube',
    'craigslist',
    'facebook login',
    'aquarius',
    'google',
    'ebay',
    'yahoo'
]
$client = new eContext\Client(ECONTEXT_USERNAME, ECONTEXT_PASSWORD);
$density = new eContext\Categories\Density($client);
$density->setData($keywords);
$results = $density->search();
setData
eContext\Categories\Result

Navigation

  • index
  • next |
  • previous |
  • eContext SDK PHP 0.1.5 documentation »
  • eContext\Categories\Density »
© Copyright 2017, Jonathan Spalink. Created using Sphinx.