I have been around the web a lot in the past day and was wondering does Amazon API have a .wsdl file? Im struggling to understand how I talk to their web service.
I've downloaded https://developer.amazonservices.com/gp/mws/api.html/180-1400280-4320051?ie=UTF8§ion=feeds&group=bde&version=latest
And have also signed up for MWS. As well as found this wsdl file but this seems to relate to something else as I cant find reference to anything I found related to MWS such as OperationType. http://webservices.amazon.com/AWSECommerceService/2013-08-01/AWSECommerceService.wsdl
However at no point does it seem to reference a wsdl file.
Am I missing something?
All feed information can be found:
PRODUCTS
https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/XML_Documentation_Intl.pdf
ORDERS
https://images-na.ssl-images-amazon.com/images/G/02/mwsportal/doc/en_US/orders/2011-01-01/MWSOrdersApiReference.V361506650.pdf
Basically you do the following:
Create your XML document (if required)
Create a webrequest - making
sure the query string contains all the elements required and nothing
more or less (this is very important), the order of these is also
important. Use:
https://mws.amazonservices.co.uk/scratchpad/index.html to work out
which elements are required
Sign the request
Receive a response.
Thanks,
Clare
Related
I was looking around web and amazon affilate apis, but can not find a way without scrapping amazon product pages to extract some of the data to display on my site.
I have input box where users can copy/past amazon links and I want to create preview to the product on next page using the image, price and other content and link back to the page. I saw this Amazon products API - Looking for basic overview and information, I have try to use id that I think was correct one to get data for but I got wrong result.
Example
https://www.amazon.com/Hello-Kitty-Petite-House-Complete/dp/B00I90NTCE/ref=sr_1_2
I assume this is B00I90NTCE the id.
Can someone point me to correct direction?
Well you should read the documentation for the amazon product api. Here is a link to the documentation: http://docs.aws.amazon.com/AWSECommerceService/latest/DG/Welcome.html. You can also try out the api using the scratch pad: http://webservices.amazon.com/scratchpad/index.html?rw_useCurrentProtocol=1. See also this link: http://docs.aws.amazon.com/AWSECommerceService/latest/GSG/SubmittingYourFirstRequest.html
The amazon api is RESTful which means it is stateless and it works over http. It is easy to use. you have to create a url with the required parameters. if you call this url from a programming language or copy/paste it in a browser, it will return xml. The xml will contain the product information such as product image, price, product description, amazon link etc. You can parse the xml using a suitable library for your programming language
Does the FedEx shipping API have a SOAP endpoint? I'm unable to find the WSDL endpoint.
Their site has changed since the other 2 answers here.
The most direct answer is that they do not have a classic WSDL endpoint, where you just get a URL, Add Service Reference and go.
Instead they have you download a zip file which contains a wsdl file which you then use locally - pretty odd. That wsdl file changes name over time, as does the zip, with every version - but the current file is at:
https://images.fedex.com/templates/components/apps/wpor/secure/downloads/wsdl/201607/standard/RateService.zip
My guess is you can get at it without logging in given the images subdomain, likely a CDN.
Once that link dies here's how you currently navigate their obtuse Developer section, which they'll probably also change again:
http://www.fedex.com/us/developer/
Click FedEx Web Services on the left
Under the unclickable "Document and Downloads" part of the page, click Move to Downloads
Scroll to the bottom - there's a weird table with service names like "Quote Rates." Each time you expand a row, the header row will have some Download text stuffed into it. Clicking "WSDL" gets you the zip file.
Not the worst process for getting a simple WSDL I've seen but, they're definitely in the running.
Yes it would appear so.
http://www.fedex.com/us/developer/solutions.html
I am not sure if they have the WSDLs available remotely, but they do provide the WSDLs for download on their Technical Resources page on their developer solutions page, to which you need a login with FedEx.
You can use this endpoint
https://wsbeta.fedex.com:443/web-services
i found it from here
https://stackoverflow.com/a/57176378/5374995
Or you can find endpoint on the bottom of WSDL file with name="RateService"
I am looking for a list of countries/states/cities that can be used with Facebook Graph API when publishing targeted posts.
I found one JSON file available on this page but the file doesn't parse correctly and I also doubt whether it can be used for post targeting since the file is for advertisements.
Also, I am not sure whether the third party data like the one provided by MaxMind can be used directly with Facebook API.
Does anyone have such a list or can atleast point me to a right direction?
The answer is here: https://developers.facebook.com/docs/reference/ads-api/get-autocomplete-data/
To check what countries are available you could just get a response from this endpoint:
URL:
https://graph.facebook.com/API_VERSION/search?type=adgeolocation&location_types=['country']
HTTP_METHOD: GET
You also have to set your access token in the URL.
To just see the fields key and name and a larger quantity of countries without being paginated this would be the complete URL:
https://graph.facebook.com/API_VERSION/search?type=adgeolocation&location_types=['country']&fields=key,name&limit=1000
For countries: search?type=adgeolocation&location_types=['countries']&limit=1000
For regions: search?type=adgeolocation&location_types=['region']&limit=1000&country_code=PT
Hope that helps :)
Well, for countries you could always check the Facebook Internationalization Document.
The file Facebook publishes seems valid for city/state/country lookups. It provides the graph id you will need. And it seems to parse as valid json for me.
Ok. I was able to use the same JSON file I mentioned in my question. As I said in my response to #offbysome, previously I had saved the file by opening it in Google Chrome. But then I used Firefox and used the Right Click => Save File As option to save the file on disk. This file is actually a tar gz (which facebook wrongly names as .php file). After unzipping the file, I was able to use the same code posted in my comment to get the PHP array which I then imported to MySQL.
I am currently developping a mobile application with a drupal 7 website as a backend. Using the services API with a REST server I was able to easily access the nodes, users, files and comments to see their content.
I am able via a POST request to log in the website but I cannot create a comment through the services API. Actually, there is no error and a new comment is well created in the database but it is empty and its nid is 0.
I also tried to download a valid comment, modify it with new datas, and send it but I have the same result.
I also need to add that the comments I am using or not just simple ones, they include some specific fields in their form.
Can anyone help me to solve this problem ? Has anyone ever experience something similar ?
Thank you
Check you are posting an object that is correctly structured, services isn't doing a comment_save()
Have a look at the test scripts for the structure
http://drupalcode.org/project/services.git/blob/refs/heads/7.x-3.x:/tests/functional/ServicesResourceCommentTests.test#l100
I want to call the Google product search and get back a parse-able XML file rather than having to scrape the HTML. I'm not looking for a SOAP based service, but a service that returns XML based on a URL passed in.
Correction--this did NOT work:
The Google Base API lists only a subset of Google product sellers (apparently only those who are active users of the Google Base product.)
http://code.google.com/apis/base/docs/2.0/attrs-queries.html
I eventually ended up using a screen scraping solution and then found that the data was too inconsistant to use for my purposes at all. :-(
http://answers.oreilly.com/topic/2165-how-to-search-google-and-bing-in-c/
use that refer link ,hopefuly it'll very usefull with you all guys