+ Reply to Thread
Results 1 to 2 of 2
-
01-03-2012 03:23 AM #1Senior Member
- Join Date
- Apr 2011
- Posts
- 819
Setting filter after object is instantiated?
I have this:
How could I set a filter (merchant/city/country etc) in place of the question marks after I've instantiated the prosperentApi object?PHP Code:$prosperentApi = new Prosperent_Api();
$prosperentApi->set_api_key($api_key);
??
$prosperentApi->fetchTrends();
$prosperentApi->getFacets($facet);
/*some code here*/
-
01-03-2012 03:29 AM #2Senior Member
- Join Date
- Apr 2011
- Posts
- 819
And there I go answering my own question a few seconds later:
PHP Code:$prosperentApi->set_filterMerchant($filter); //or whatever filter you'd like to use

Reply With Quote