1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

REST API authorization header

Discussion in 'Programming' started by yourwish, Oct 18, 2016.

  1. #1
    yourwish, Oct 18, 2016 IP
  2. Einheijar

    Einheijar Well-Known Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    165
    #2
    Looks like
    
    https://seller.marketplace.sears.com/SellerPortal/api/oms/remittance/v3?sellerId={}&fromdate={}&todate={}’
    
    Code (markup):
    With additional headers. There isn't a URL for signatures it has to be sent via request headers

    
    curl_setopt($curl,CURLOPT_HTTPHEADER,array('authorization:HMAC-SHA256 [EMAIL='emailaddress=test@test.com']emailaddress=[/EMAIL][EMAIL='test@searshc.com'][B]test@searshc.com[/B][/EMAIL],timestamp=2016-02-11T20:23:05Z,signature=bf4ece266c47538d793b296fa772e9ea299611c6c6e48841f4e66a4f994bed26'));
    [/php]
    Code (php):
     
    Einheijar, Oct 18, 2016 IP
    yourwish likes this.
  3. yourwish

    yourwish Active Member

    Messages:
    43
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    98
    #3
    Great. That's what i thought. Now it's possible only with curl. let me try. Thanks for your kind response.
     
    yourwish, Oct 20, 2016 IP