Join Free
+ Reply to Thread
Results 1 to 7 of 7
  1. #1

    fetchMerchant method

    PHP Code:
    $arr = array
    (
        
    => 'FootSmart',
        
    => 'Backcountry',
        
    => 'Endless.com',
        
    => 'Zappos.com',
        
    => 'Shoebuy.com',
        
    => 'Road Runner Sports',
        
    => 'PlanetShoes.com',
        
    => 'Bagsbuy.com',
        
    => 'RealCyclist & HucknRoll',
        
    => 'Sears.com',
        
    10 => 'Campmor'
    );
    $prosperentApi->fetchMerchant($arr); 
    It looks like there is a limit of number merchant in an array that the fetchMerchant() can fetch. If I trim down to
    PHP Code:
    $arr = array
    (
        
    => 'FootSmart',
        
    => 'Backcountry',
        
    => 'Endless.com')
    $prosperentApi->fetchMerchant($arr); 
    ..then it works fine! Any idea ?

  2. #2

  3. #3
    Thanks Nite,
    But I still don't get it. I read the post and it said for it to work -> strip out spaces, and extension (.com) . So, what if I want to retreive "Road Runner Sports" merchant ? I have to do it separate for each merchant that have "spaces" ?

    UPDATE:
    For merchants that have spaces or .com it must encapsulated with double quotes

    For example
    PHP Code:
    $arr = array
    (
        
    => 'FootSmart',
        
    => 'Backcountry',
        
    => '"Endless.com"',
        
    => '"Zappos.com"',
        
    => '"Shoebuy.com"',
        
    => '"Road Runner Sports"',
        
    => '"PlanetShoes.com"',
        
    => '"Bagsbuy.com"',
        
    => '"RealCyclist & HucknRoll"',
        
    => '"Sears.com"',
        
    10 => 'Campmor'
    ); 
    Last edited by 700; 03-13-2012 at 05:44 PM.

  4. #4
    So, the max it can go is 10 merchants at a time ?

  5. #5
    I got it!
    PHP Code:
    $prosperentApi = new Prosperent_Api(array('limit' => 100)); 

  6. #6
    Quote Originally Posted by 700 View Post
    I got it!
    PHP Code:
    $prosperentApi = new Prosperent_Api(array('limit' => 100)); 
    lol, wonder how long it'd take you to figure it out

    and yes, you need to use "" otherwise the .com fucks things up.

  7. #7
    how can we get the list of all merchants without duplicates , i tried but i get too much duplicates .

    need this so later i can get the coupons that merchant has

    thanks

Posting Permissions

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