Join Free
  • Inbox
    + Reply to Thread
    Results 1 to 2 of 2
    1. #1

      Setting filter after object is instantiated?

      I have this:

      PHP Code:
      $prosperentApi = new Prosperent_Api();
      $prosperentApi->set_api_key($api_key);
      ??
      $prosperentApi->fetchTrends();
      $prosperentApi->getFacets($facet);
      /*some code here*/ 
      How could I set a filter (merchant/city/country etc) in place of the question marks after I've instantiated the prosperentApi object?

    2. #2
      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 

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts