问题描述
我有一个数据库,并希望链接亚马逊的产品与他们的ASIN
I have a database and want to link amazon products with their asin.
例如B005UEF678为iPhone 4S,将
For example B005UEF678 for iPhone 4S, would be
amazon.com/dp/B005UEF678 in the US,
but amazon.de/dp/B005UEF678 in germany.
其实我也不知道哪个URL是正确的,因为用户可以从任何国家?
Actually I don't know which URL is the right, since the user could be from any country?
你会如何解决这个问题?
How would you solve this problem?
API?开关案例在用户语言?
API? Switch Case in Userlanguage?
感谢您
BYT他的方式我使用PHP。
byt he way I use PHP.
推荐答案
有对的ASIN称为。信息。
您可以轻松地Amazonlink生成网址或语法如下:
there is a servie for ASIN Short URLs called asin.info. You can easily generate your URLs by Amazonlink or with this syntax:
http://asin.info/a/{asincode}
这将用户重定向到正确的国家的产品。
It will redirect the user to the product for the right country.
希望这会帮助你。
这篇关于亚马逊ASIN号码创建链接通过usersettings链接正确的国家(例如amazon.com,.co.uk,.JP)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!