This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Extract value for property | |
| # | |
| # params: | |
| # external_id - target property external_id | |
| # index - index to take for multivalued properties | |
| # default is 1. | |
| # | |
| # Sample: | |
| # Product: sku => 020009, color => [Red, Blue] | |
| # SALSIFY_VALUE("sku") => 0200009 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "channel_name":"My Channel Run - Failure", | |
| "publication_status":"failed", | |
| "product_feed_export_status":"failed", | |
| "digital_asset_export_status":"failed", | |
| "feed_delivery_status":"failed" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "channel_name":"My Channel Run - Success", | |
| "publication_status":"completed", | |
| "product_feed_export_url":"http://output.at.salsify.com/to/your/product/feed", | |
| "digital_asset_export_url":"http://output.at.salsify.com/to/your/digital/asset/feed", | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rest_client' | |
| # Create the product | |
| product = {'SKU' => '12345', 'Name' => 'Big TV', 'Brand' => 'Salsify'} | |
| RestClient.post('http://localhost:5000/api/v1/products/', product.to_json, | |
| accept: 'application/json', content_type: 'application/json', | |
| 'X-AUTH-TOKEN' => 'ABC123', 'X-USER-EMAIL' => 'joe@customer.com') | |
| # Update the product | |
| product = {'Inventory' => '10'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Inventory": null | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "SKU": "3635065-UPDATED" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Inventory": "10" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "SKU": "3635065", | |
| "Model": "KDL-40NX700", | |
| "Name": "Sony 40 in. Bravia TV", | |
| "Description": "This is an amazing tv. You should buy it.", | |
| "Brand": "Sony", | |
| "Aspect Ratio": "16:9", | |
| "Feature": ["Child Lock", "Picture in Picture", "Sleep Timer"], | |
| "Release Date": "10-19-2013", | |
| "Inventory": "10" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { "header": { } }, | |
| { "attributes": "attributes.json" }, | |
| { "attribute_values": "attribute_values.json" }, | |
| { "products": "products.json" } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "header": { | |
| "version": "2013-04", | |
| "scope": ["all"], | |
| "mode": "truncate" | |
| } | |
| } |