summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/sdk/sdk.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/sdk/sdk.js')
-rw-r--r--StoneIsland/www/js/sdk/sdk.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/StoneIsland/www/js/sdk/sdk.js b/StoneIsland/www/js/sdk/sdk.js
deleted file mode 100644
index 893d3fae..00000000
--- a/StoneIsland/www/js/sdk/sdk.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var sdk = (function(){
- var sdk = {}
-
- // var endpoint = "https://secure.api.yoox.biz/"
- var endpoint = "https://sandbox.api.yoox.biz/"
-
- sdk.path = function(api, path){
- return endpoint + api + "/STONEISLAND_US/" + path
- }
-
- sdk.fetch_collection = function(opt){
- $.ajax({
- method: "GET",
- url: sdk.path("Search.API/1.2", "search.json"),
- data: { format: "full", gallery: opt.gallery_id },
- success: opt.success,
- })
- }
-
- sdk.image = function(code){
- return "http://cdn.yoox.biz/" + code.substr(0,2) + "/" + code + "_11_f.jpg"
- }
-
- return sdk
-})()