Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6372897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:17:45+00:00 2026-05-25T01:17:45+00:00

I am using the PHP Soap Library to connect to Amazon and retrieve product

  • 0

I am using the PHP Soap Library to connect to Amazon and retrieve product cover art from ASINs. That much I’ve accomplished, but according to the Agreement (at least as far as I can tell; IANAL), any info I get from the API must be linked to its respective Product Detail Page on the Amazon retail site. I’ve browsed through the docs, but for the life of me I can not figure out what method, etc. I need to use, short of constructing the URL manually (which is potentially unstable). Any insight?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:17:46+00:00Added an answer on May 25, 2026 at 1:17 am

    Figured it out. This is the code I ended up using:

    <?php
    class AmazonMusicSearch extends AmazonECS {
        protected $asin;
        protected $detailPageUrl;
        protected $ecs;
    
        function __get($name) {
            return $this->$name;
        }
    
        function __construct() {
            $this->ecs = new parent(AZ_APP_ID, AZ_APP_SECRET, 'com', AZ_ASSOCIATE_TAG);
        }
    
        function searchByAsin($asin) {
            $search = $this->ecs->responseGroup('Small')->category('Music')->search($asin);
    
            $this->asin = $asin;
    
            if(isset($search['Items']['Item']['DetailPageURL'])) {
                $this->detailPageUrl = $search['Items']['Item']['DetailPageURL'];
            } elseif(isset($search['Items']['Item'][0]['DetailPageURL'])) {
                $this->detailPageUrl = $search['Items']['Item'][0]['DetailPageURL'];
            } else {
                return false;
            }
    
            return $this;
        }
    
        function detailPageFromAsin($asin) {
            return $this->searchByAsin($asin)->detailPageUrl;
        }
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish to call a web service, using SOAP, from PHP (using the included
I am trying to get issue details from JIRA 3.13 using PHP SOAP. I
I have a PHP SOAP server (using nuSOAP) that I consume with a C#-based
I have a PHP SOAP server (using nuSOAP with wsdl) that send the content
I have written a webservice using the PHP SOAP classes. It has functions to
I'm trying to implement a stateful web service in PHP using the SOAP extension.
I'm trying to use a Web Service using PHP and SOAP. The Web Service
I'm using Zend Framework AutoDiscovery to generate WSDL for a PHP SOAP Web Service.
So I have a PHP Soap service that is running nusoap and I am
I am trying to create a webservice using the PHP Soap extension and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.