{"_id":"54bf9aead03bfc0d0000e7dc","version":{"_id":"54bf9a5dd18df00d00566a53","project":"54bf9a5dd18df00d00566a50","__v":2,"createdAt":"2015-01-21T12:23:57.452Z","releaseDate":"2015-01-21T12:23:57.452Z","categories":["54bf9a5dd18df00d00566a54","54bf9aafdcfc4d0d00a1a1c0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"editedParams":true,"category":{"_id":"54bf9aafdcfc4d0d00a1a1c0","pages":["54bf9aead03bfc0d0000e7dc"],"project":"54bf9a5dd18df00d00566a50","__v":1,"version":"54bf9a5dd18df00d00566a53","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-01-21T12:25:19.354Z","from_sync":false,"order":9999,"slug":"static-html","title":"Static HTML"},"project":"54bf9a5dd18df00d00566a50","editedParams2":true,"__v":16,"user":"548ee419ff3cbe0b00e77c2e","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-01-21T12:26:18.151Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"name":"","language":"json","code":"POST http://staticw2.yotpo.com/batch?\n{\n  \"methods\": [{\n      \"method\":\"main_widget\",\n      \"params\": {\n        \"pid\": \"334342199\"\n       }\n  },\n{\n  \"method\":\"bottomline\",\n      \"params\": {\n        \"pid\": \"334342199\"\n       },\n  \"format\": \"json\"\n  }\n],\n\"app_key\":\"GYRCLYSnfHKGlA9iQoYjeVQ0297Fr4kvW5kaZ9Zw\"\n}"}]},"method":"post","results":{"codes":[{"name":"","code":"[{\"method\":\"main_widget\",\"result\":\"\n<div class=\\\"yotpo-display-wrapper yotpo-no-reviews\\\" style=\\\"visibility: hidden;\\\">\\n      \n    <!-- Yotpo label + logo -->\\n      \\n\n    <!-- if full_white_label is enabled don't show the label div at all.. -->\\n    \n    <div class=\\\"yotpo-label yotpo-small-box\\\">\\n          \n        <span class=\\\"yotpo-logo-title\\\">\n            <a class=\\\"\\\" href=\\\"http://my.yotpo.com/landing_page?redirect=https%3A%2F%2Fwww.yotpo.com%2Fverified-product-reviews-by-yotpo&utm_campaign=branding_link_reviews_widget_v2&utm_medium=widget&utm_source=reviews-demo.myshopify.com\\\" target=\\\"_blank\\\">Reviews by</a>\n        </span>\n        <div class=\\\"yotpo-icon-btn-big transparent-color-btn\\\">\n            <a class=\\\"yotpo-icon yotpo-icon-yotpo-logo\\\" href=\\\"http://my.yotpo.com/landing_page?redirect=https%3A%2F%2Fwww.yotpo.com%2Fverified-product-reviews-by-yotpo&utm_campaign=branding_link_reviews_widget_v2&utm_medium=widget&utm_source=reviews-demo.myshopify.com\\\" target=\\\"_blank\\\"></a>\n        </div>\\n          \n        <div class=\\\"yotpo-clr\\\"></div>\\n      \n        <div class=\\\"yotpo-clr\\\"></div>\\n    \n    </div>\\n\\n\\n\\n      \n    <!-- End Yotpo label + logo -->\\n      \n    <!-- Yotpo Promoted products -->\\n      \\n\n    <div class=\\\"promoted-products-box\\\">\\n  \n        <div class=\\\"text-xl yotpo-main-title\\\">Other top rated products</div>\\n\\n    \n        <!-- Pagination  -->\\n\\n    \n        <div class=\\\"yotpo-pager\\\">\\n      \n            <span class=\\\"yotpo-page-element yotpo-icon yotpo-icon-left-arrow yotpo_previous\\\"></span>\\n      \n            <span class=\\\"yotpo-page-element yotpo-icon yotpo-icon-right-arrow yotpo_next\\\"></span>\\n    \n        </div>\\n    \n        <!-- End Pagination  -->\\n\\n  \n        <div class=\\\"yotpo-promoted-products\\\">\\n    \n            <ul class=\\\"promoted-products\\\">\\n\\n        \\n\n                <li>\\n  \n                    <div class=\\\"yotpo-promoted-product\\\" data-type=\\\"widget_v2\\\" data-position=\\\"1\\\" data-source-products-app-id=\\\"\\\" data-product-id=\\\"1973121\\\" data-dest-app-key=\\\"GYRCLYSnfHKGlA9iQoYjeVQ0297Fr4kvW5kaZ9Zw\\\" data-matching-algorithm=\\\"\\\">\\n\\n    \n                        <a href=\\\"https://yotpo.com/go/y3Mnxy1f\\\" class=\\\"yotpo-product-link\\\" target=\\\"_self\\\">\\n      \n                            <!-- Product image  -->\\n      \n                            <div class=\\\"yotpo-product-image\\\">\\n        \n                                <img src=\\\"//ddcfq0gxiontw.cloudfront.net/PromotedProduct/9474/4056150/big.png?1420634116\\\">\\n          \n                                    <div class=\\\"image-text text-s\\\">\\n            sdfjsjkdfhsjdkf\\n          </div>\\n      \n                                </div>\\n      \n                                <!-- End Product image  -->\\n\\n\\n    \n                                <div class=\\\"text-m yotpo-product-name\\\">Yotpo Mug</div>\\n    \n                            </a>\\n    \n                            <!-- Product stars  -->\\n      \n                            <div class=\\\"yotpo-review-stars pull-left text-l\\\">\\n        \n                                <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                <span class=\\\"yotpo-icon yotpo-icon-half-star pull-left\\\"></span>\\n      \n                            </div>\\n      \n                            <div class=\\\"text-s reviews-count\\\">\\n        (19)\\n      </div>\\n    \n                            <!-- End product stars  -->\\n    \n                            <div class=\\\"yotpo-clr\\\"></div>\\n    \n                            <div class=\\\"text-l yotpo-product-price\\\">$15.00</div>\\n  \n                        </div>\\n\n                    </li>\\n\\n        \\n\n                    <li>\\n  \n                        <div class=\\\"yotpo-promoted-product\\\" data-type=\\\"widget_v2\\\" data-position=\\\"2\\\" data-source-products-app-id=\\\"\\\" data-product-id=\\\"1973124\\\" data-dest-app-key=\\\"GYRCLYSnfHKGlA9iQoYjeVQ0297Fr4kvW5kaZ9Zw\\\" data-matching-algorithm=\\\"\\\">\\n\\n    \n                            <a href=\\\"https://yotpo.com/go/hxpJ82A4\\\" class=\\\"yotpo-product-link\\\" target=\\\"_self\\\">\\n      \n                                <!-- Product image  -->\\n      \n                                <div class=\\\"yotpo-product-image\\\">\\n        \n                                    <img src=\\\"//ddcfq0gxiontw.cloudfront.net/PromotedProduct/9476/4056152/big.png?1420634121\\\">\\n      \n                                    </div>\\n      \n                                    <!-- End Product image  -->\\n\\n\\n    \n                                    <div class=\\\"text-m yotpo-product-name\\\">Yotpo Screensaver</div>\\n    \n                                </a>\\n    \n                                <!-- Product stars  -->\\n      \n                                <div class=\\\"yotpo-review-stars pull-left text-l\\\">\\n        \n                                    <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                    <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                    <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                    <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                    <span class=\\\"yotpo-icon yotpo-icon-half-star pull-left\\\"></span>\\n      \n                                </div>\\n      \n                                <div class=\\\"text-s reviews-count\\\">\\n        (13)\\n      </div>\\n    \n                                <!-- End product stars  -->\\n    \n                                <div class=\\\"yotpo-clr\\\"></div>\\n    \n                                <div class=\\\"text-l yotpo-product-price\\\">$250.00</div>\\n  \n                            </div>\\n\n                        </li>\\n\\n        \\n\n                        <li>\\n  \n                            <div class=\\\"yotpo-promoted-product\\\" data-type=\\\"widget_v2\\\" data-position=\\\"3\\\" data-source-products-app-id=\\\"\\\" data-product-id=\\\"1973125\\\" data-dest-app-key=\\\"GYRCLYSnfHKGlA9iQoYjeVQ0297Fr4kvW5kaZ9Zw\\\" data-matching-algorithm=\\\"\\\">\\n\\n    \n                                <a href=\\\"https://yotpo.com/go/xBXGt3Ga\\\" class=\\\"yotpo-product-link\\\" target=\\\"_self\\\">\\n      \n                                    <!-- Product image  -->\\n      \n                                    <div class=\\\"yotpo-product-image\\\">\\n        \n                                        <img src=\\\"//ddcfq0gxiontw.cloudfront.net/PromotedProduct/9475/4056151/big.png?1420634118\\\">\\n      \n                                        </div>\\n      \n                                        <!-- End Product image  -->\\n\\n\\n    \n                                        <div class=\\\"text-m yotpo-product-name\\\">Yotpo T-Shirt</div>\\n    \n                                    </a>\\n    \n                                    <!-- Product stars  -->\\n      \n                                    <div class=\\\"yotpo-review-stars pull-left text-l\\\">\\n        \n                                        <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                        <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                        <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                        <span class=\\\"yotpo-icon yotpo-icon-star pull-left\\\"></span>\n                                        <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\\n      \n                                    </div>\\n      \n                                    <div class=\\\"text-s reviews-count\\\">\\n        (13)\\n      </div>\\n    \n                                    <!-- End product stars  -->\\n    \n                                    <div class=\\\"yotpo-clr\\\"></div>\\n    \n                                    <div class=\\\"text-l yotpo-product-price\\\">$20.00</div>\\n  \n                                </div>\\n\n                            </li>\\n\\n    \n                        </ul>\\n  \n                    </div>\\n\n                </div>\\n      \n                <!-- End Promoted products -->\\n      \n                <!-- Yotpo Bottom line -->\\n      \n                <span class=\\\"yotpo-display-wrapper\\\" style=\\\"visibility: hidden;\\\">\\n  \n                    <div class=\\\"yotpo-regular-box yotpo-bottomline \\\">\\n    \n                        <div class=\\\"yotpo-stars-and-sum-reviews\\\">\\n          \n                            <span class=\\\"yotpo-stars\\\">\\n              \n                                <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\n                                <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\n                                <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\n                                <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\n                                <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\\n          \n                            </span>\\n          \n                            <div class=\\\"yotpo-clr\\\"></div>\\n          \n                            <div class=\\\"questions pull-left\\\" style=\\\"\\\">\\n  \n                                <a href=\\\"#\\\" class=\\\"text-m ask-question\\\">\\n    0 Questions \\\\ 0 Answers\\n  </a>\\n\n                            </div>\\n    \n                        </div>\\n        \n                        <div class=\\\"yotpo-default-button yotpo-icon-btn pull-right yotpo-hidden-mobile write-question-button \\\">\\n          \n                            <span class=\\\"yotpo-icon yotpo-icon-double-bubble\\\"></span>\\n          \n                            <span class=\\\"yotpo-icon-button-text\\\">ask a question</span>\\n        \n                        </div>\\n        \n                        <div class=\\\"yotpo-default-button yotpo-icon-btn pull-right yotpo-hidden-mobile write-button write-review-button yotpo-hidden \\\">\\n          \n                            <span class=\\\"yotpo-icon yotpo-icon-write\\\"></span>\\n          \n                            <span class=\\\"yotpo-icon-button-text\\\">write a review</span>\\n        \n                        </div>\\n    \n                        <div class=\\\"yotpo-clr\\\"></div>\\n  \n                    </div>\\n\n                </span>\\n\\n      \n                <!-- End Yotpo Bottom line -->\\n\\n\n                <!-- Write a review -->\\n\n                <div class=\\\"write-review-wrapper write-form\\\" data-has-duplicate-reviews-feature=\\\"false\\\">\\n  \n                    <div class=\\\"write-review yotpo-regular-box\\\">\\n    \n                        <div class=\\\"yotpo-header\\\">\\n      \n                            <div>\\n        \n                                <label class=\\\"y-label yotpo-header-title\\\">WRITE A REVIEW</label>\\n      \n                            </div>\\n      \n                            <label class=\\\"y-label\\\">Score:</label>\\n      \n                            <div>\\n        \n                                <span class=\\\"stars-wrapper\\\">\\n            \n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left review-star\\\" data-score=\\\"1\\\"></span>\\n            \n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left review-star\\\" data-score=\\\"2\\\"></span>\\n            \n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left review-star\\\" data-score=\\\"3\\\"></span>\\n            \n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left review-star\\\" data-score=\\\"4\\\"></span>\\n            \n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left review-star\\\" data-score=\\\"5\\\"></span>\\n        \n                                </span>\\n      \n                            </div>\\n    \n                        </div>\\n    \n                        <div class=\\\"write-review-content\\\">\\n      \n                            <div class=\\\"form-group\\\">\\n        \n                                <div class=\\\"form-element\\\">\\n          \n                                    <label class=\\\"y-label\\\">Title:</label>\\n          \n                                    <input class=\\\"y-input\\\" autocomplete=\\\"off\\\" name=\\\"review_title\\\" maxlength=\\\"150\\\" placeholder=\\\"\\\"/>\\n        \n                                </div>\\n        \n                                <div class=\\\"form-element\\\">\\n          \n                                    <label class=\\\"y-label\\\">Review:</label>\\n          \n                                    <textarea class=\\\"y-input text-box\\\" name=\\\"review_content\\\" maxlength=\\\"1000\\\" placeholder=\\\"\\\"></textarea>\\n        \n                                </div>\\n      \n                            </div>\\n    \n                        </div>\\n    \n                        <div class=\\\"error-box yotpo-hidden\\\">\\n      \n                            <div class=\\\"text-wrapper\\\">\\n        \n                                <label class=\\\"error-text empty yotpo-hidden\\\">This field cannot be empty</label>\\n\n                                <label class=\\\"error-text score yotpo-hidden\\\">Please enter a star rating for this review</label>\\n\n                                <label class=\\\"error-text email yotpo-hidden\\\">Invalid email</label>\\n\n                                <label class=\\\"error-text user-already-reviewed yotpo-hidden\\\">Your review has already been submitted.</label>\\n\n                                <label class=\\\"error-text max_length yotpo-hidden\\\">Max length was exceeded</label>\\n      \n                            </div>\\n      \n                            <div class=\\\"yotpo-icon-btn-small transparent-color-btn\\\" >\n                                <span class=\\\"yotpo-icon yotpo-icon-cross\\\"></span>\n                            </div>\\n    \n                        </div>\\n    \n                        <div class=\\\"yotpo-footer yotpo-animation-opacity\\\">\\n      \n                            <div class=\\\"socialize-wrapper\\\">\\n        \n                                <div class=\\\"connected\\\">You are connected as \n                                    <span class=\\\"username\\\"></span>\n                                </div>\\n        \n                                <div class=\\\"socialize\\\">\\n          \n                                    <label class=\\\"y-label\\\">Connect with:</label>\\n          \n                                    <div>\\n            \n                                        <div class=\\\"yotpo-default-button yotpo-icon-btn\\\" data-network=\\\"linkedin\\\">\n                                            <span class=\\\"yotpo-icon yotpo-icon-linkedin pull-left\\\"></span>\n                                        </div>\\n            \n                                        <div class=\\\"yotpo-default-button yotpo-icon-btn\\\" data-network=\\\"google_oauth2\\\">\n                                            <span class=\\\"yotpo-icon yotpo-icon-google pull-left\\\"></span>\n                                        </div>\\n            \n                                        <div class=\\\"yotpo-default-button yotpo-icon-btn\\\" data-network=\\\"twitter\\\">\n                                            <span class=\\\"yotpo-icon yotpo-icon-twitter pull-left\\\"></span>\n                                        </div>\\n            \n                                        <div class=\\\"yotpo-default-button yotpo-icon-btn\\\" data-network=\\\"facebook\\\">\n                                            <span class=\\\"yotpo-icon yotpo-icon-facebook pull-left\\\"></span>\n                                        </div>\\n          \n                                    </div>\\n        \n                                </div>\\n        \n                                <div class=\\\"yotpo-or\\\">\\n          -OR-\\n        </div>\\n      \n                            </div>\\n      \n                            <div class=\\\"connect-wrapper\\\">\\n        \n                                <div class=\\\"form-element name-input\\\">\\n          \n                                    <label class=\\\"y-label\\\">Use your name:</label>\\n          \n                                    <input class=\\\"y-input\\\" autocomplete=\\\"off\\\" name=\\\"display_name\\\" maxlength=\\\"40\\\" placeholder=\\\"\\\"/>\\n        \n                                </div>\\n        \n                                <div class=\\\"form-element email-input\\\">\\n          \n                                    <label class=\\\"y-label\\\">Email:</label>\\n          \n                                    <input class=\\\"y-input\\\" autocomplete=\\\"off\\\" name=\\\"email\\\" placeholder=\\\"\\\"/>\\n        \n                                </div>\\n        \n                                <div class=\\\"yotpo-clr\\\"></div>\\n      \n                            </div>\\n    \n                        </div>\\n    \\n    \n                        <input type=\\\"button\\\" class=\\\"yotpo-default-button primary-color-btn yotpo-submit yotpo-disabled\\\" value=\\\"Post\\\"/>\\n    \n                        <div class=\\\"yotpo-preloader-wrapper\\\">\\n    \n                            <div class=\\\"yotpo yotpo-pre-loader\\\">\\n\\t\\t\n                                <span class=\\\"yotpo-empty-stars\\\">\\n\\t\\t\\t\n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star\\\"></span>\\n\\t\\t\\t\n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star\\\"></span>\\n\\t\\t\\t\n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star\\\"></span>\\n\\t\\t\\t\n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star\\\"></span>\\n\\t\\t\\t\n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star\\\"></span>\\n\\t\\t\n                                </span>\\n\\n\\t\\t\n                                <span class=\\\"yotpo-full-stars\\\">\\n\\t\\t\\t\n                                    <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n\\t\\t\\t\n                                    <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n\\t\\t\\t\n                                    <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n\\t\\t\\t\n                                    <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n\\t\\t\\t\n                                    <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n\\t\\t\n                                </span>\\n    \n                            </div>\\n\n                        </div>\\n    \n                        <div class=\\\"yotpo-clr\\\"></div>\\n  \n                    </div>\\n\n                </div>\\n\n                <div class=\\\"yotpo-messages\\\">\\n  \n                    <div class=\\\"yotpo-thank-you yotpo-hidden\\\" data-type=\\\"share\\\">\\n    \n                        <div class=\\\"yotpo-icon-btn transparent-color-btn\\\" >\n                            <span class=\\\"yotpo-icon yotpo-icon-cross\\\"></span>\n                        </div>\\n    \n                        <div class=\\\"yotpo-thankyou-header text-xl\\\">\\n      \n                            <span class=\\\"yotpo-icon yotpo-icon-heart\\\"></span>\\n      \n                            <span>Thank you for posting a review!</span>\\n    \n                        </div>\\n        \n                        <div class=\\\"yotpo-thankyou-content\\\">\\n          \n                            <span>Be a pal and share this review to help your friends with their next shopping experience.</span>\\n        \n                        </div>\\n        \n                        <div class=\\\"yotpo-thankyou-footer\\\">\\n              \n                            <div class=\\\"yotpo-default-button yotpo-icon-btn\\\">\\n                \n                                <a class=\\\"social-link popup-link\\\" href=\\\"#\\\" target=\\\"_blank\\\" data-network=\\\"facebook\\\">\\n                  \n                                    <span class=\\\"yotpo-icon yotpo-icon-facebook\\\"></span>\\n                  \n                                    <span class=\\\"yotpo-icon-button-text\\\">share</span>\\n                \n                                </a>\\n              \n                            </div>\\n              \n                            <div class=\\\"yotpo-default-button yotpo-icon-btn\\\">\\n                \n                                <a class=\\\"social-link popup-link\\\" href=\\\"#\\\" target=\\\"_blank\\\" data-network=\\\"twitter\\\">\\n                  \n                                    <span class=\\\"yotpo-icon yotpo-icon-twitter\\\"></span>\\n                  \n                                    <span class=\\\"yotpo-icon-button-text\\\">share</span>\\n                \n                                </a>\\n              \n                            </div>\\n              \n                            <div class=\\\"yotpo-default-button yotpo-icon-btn\\\">\\n                \n                                <a class=\\\"social-link popup-link\\\" href=\\\"#\\\" target=\\\"_blank\\\" data-network=\\\"linkedin\\\">\\n                  \n                                    <span class=\\\"yotpo-icon yotpo-icon-linkedin\\\"></span>\\n                  \n                                    <span class=\\\"yotpo-icon-button-text\\\">share</span>\\n                \n                                </a>\\n              \n                            </div>\\n              \n                            <div class=\\\"yotpo-default-button yotpo-icon-btn\\\">\\n                \n                                <a class=\\\"social-link popup-link\\\" href=\\\"#\\\" target=\\\"_blank\\\" data-network=\\\"google\\\">\\n                  \n                                    <span class=\\\"yotpo-icon yotpo-icon-google\\\"></span>\\n                  \n                                    <span class=\\\"yotpo-icon-button-text\\\">share</span>\\n                \n                                </a>\\n              \n                            </div>\\n        \n                        </div>\\n  \n                    </div>\\n  \n                    <div class=\\\"yotpo-thank-you yotpo-hidden\\\" data-type=\\\"pending-for-review-approval\\\">\\n    \n                        <div class=\\\"yotpo-icon-btn transparent-color-btn\\\" >\n                            <span class=\\\"yotpo-icon yotpo-icon-cross\\\"></span>\n                        </div>\\n    \n                        <div class=\\\"yotpo-thankyou-header text-xl\\\">\\n      \n                            <span class=\\\"yotpo-icon yotpo-icon-heart\\\"></span>\\n      \n                            <span>Thank you for posting a review!</span>\\n    \n                        </div>\\n    \n                        <div class=\\\"yotpo-thankyou-content\\\">\\n      \n                            <span>Your review was sent successfully and is now waiting for our staff to publish it.</span>\\n    \n                        </div>\\n  \n                    </div>\\n\n                </div>\\n\\n\n                <!-- End Write a review -->\\n\n                <!-- Ask a question -->\\n\n                <div class=\\\"write-question-wrapper write-form\\\">\\n  \n                    <div class=\\\"write-review yotpo-regular-box\\\">\\n    \n                        <div class=\\\"yotpo-header\\\">\\n      \n                            <label class=\\\"y-label yotpo-header-title\\\">ASK A QUESTION</label>\\n    \n                        </div>\\n    \n                        <div class=\\\"write-question-content\\\">\\n      \n                            <div class=\\\"form-group\\\">\\n        \n                                <div class=\\\"form-element\\\">\\n          \n                                    <label class=\\\"y-label\\\">Question:</label>\\n          \n                                    <textarea class=\\\"y-input text-box\\\" name=\\\"review_content\\\" maxlength=\\\"1000\\\" placeholder=\\\"\\\"></textarea>\\n        \n                                </div>\\n      \n                            </div>\\n    \n                        </div>\\n    \n                        <div class=\\\"error-box yotpo-hidden\\\">\\n      \n                            <div class=\\\"text-wrapper\\\">\\n        \n                                <label class=\\\"error-text empty yotpo-hidden\\\">This field cannot be empty</label>\\n\n                                <label class=\\\"error-text score yotpo-hidden\\\">Please enter a star rating for this review</label>\\n\n                                <label class=\\\"error-text email yotpo-hidden\\\">Invalid email</label>\\n\n                                <label class=\\\"error-text user-already-reviewed yotpo-hidden\\\">Your review has already been submitted.</label>\\n\n                                <label class=\\\"error-text max_length yotpo-hidden\\\">Max length was exceeded</label>\\n      \n                            </div>\\n      \n                            <div class=\\\"yotpo-icon-btn-small transparent-color-btn\\\" >\n                                <span class=\\\"yotpo-icon yotpo-icon-cross\\\"></span>\n                            </div>\\n    \n                        </div>\\n    \n                        <div class=\\\"yotpo-footer yotpo-animation-opacity\\\">\\n      \n                            <div class=\\\"connect-wrapper\\\">\\n        \n                                <div class=\\\"form-element name-input\\\">\\n          \n                                    <label class=\\\"y-label\\\">Use your name:</label>\\n          \n                                    <input class=\\\"y-input\\\" autocomplete=\\\"off\\\" name=\\\"display_name\\\" maxlength=\\\"40\\\" placeholder=\\\"\\\"/>\\n        \n                                </div>\\n        \n                                <div class=\\\"form-element email-input\\\">\\n          \n                                    <label class=\\\"y-label\\\">Email:</label>\\n          \n                                    <input class=\\\"y-input\\\" autocomplete=\\\"off\\\" name=\\\"email\\\" placeholder=\\\"\\\"/>\\n        \n                                </div>\\n        \n                                <div class=\\\"yotpo-clr\\\"></div>\\n      \n                            </div>\\n    \n                        </div>\\n    \\n    \n                        <input type=\\\"button\\\" class=\\\"yotpo-default-button primary-color-btn yotpo-submit yotpo-disabled\\\" value=\\\"Post\\\"/>\\n    \n                        <div class=\\\"yotpo-clr\\\"></div>\\n  \n                    </div>\\n\n                </div>\\n\n                <div class=\\\"yotpo-messages\\\">\\n  \n                    <div class=\\\"yotpo-thank-you yotpo-hidden\\\" data-type=\\\"pending-for-question-approval\\\">\\n    \n                        <div class=\\\"yotpo-icon-btn transparent-color-btn\\\" >\n                            <span class=\\\"yotpo-icon yotpo-icon-cross\\\"></span>\n                        </div>\\n    \n                        <div class=\\\"yotpo-thankyou-header text-xl\\\">\\n      \n                            <span class=\\\"yotpo-icon yotpo-icon-heart\\\"></span>\\n      \n                            <span>Thank you for posting a question!</span>\\n    \n                        </div>\\n    \n                        <div class=\\\"yotpo-thankyou-content\\\">\\n      \n                            <span class=\\\"yotpo-thankyou-confirmation\\\" data-type=\\\"question-approval\\\">Please click on the link in the confirmation email we just sent you to submit your question to the store owner.\n                                <br/></br/>\n                        </span>\\n      \n                        <span class=\\\"yotpo-thankyou-publish\\\">Your question will appear on the site once someone answers it.</span>\\n    \n                    </div>\\n  \n                </div>\\n\n            </div>\\n\\n\n            <!-- End Ask a question -->\\n\\n      \n            <!-- Nav Bar -->\\n      \n            <div class=\\\"yotpo-small-box yotpo-nav reviews 0\\\">\\n        \n                <div class=\\\"yotpo-nav yotpo-nav-primary\\\">\\n          \n                    <ul>\\n                \n                        <li class=\\\"yotpo-nav-tab yotpo-active\\\" data-type=\\\"reviews\\\" data-content=\\\"yotpo-reviews-bce6624b-0aaf-4566-a617-07a2e696997e\\\">\\n                  \n                            <div class=\\\"yotpo-nav-wrapper\\\">\\n                    \n                                <span>Reviews</span>\\n                    \n                                <span class=\\\"nav-tab-sum yotpo-reviews-nav-tab-sum\\\">(0)</span>\\n                  \n                            </div>\\n                \n                        </li>\\n                \n                        <li class=\\\"yotpo-nav-tab \\\" data-type=\\\"questions\\\" data-content=\\\"yotpo-questions-bce6624b-0aaf-4566-a617-07a2e696997e\\\">\\n                  \n                            <div class=\\\"yotpo-nav-wrapper\\\">\\n                    \n                                <span>Questions</span>\\n                    \n                                <span class=\\\"yotpo-nav-tab-sum\\\">(0)</span>\\n                  \n                            </div>\\n                \n                        </li>\\n          \n                    </ul>\\n\\n\\n              \n                    <div class=\\\"yotpo-icon-btn-big transparent-color-btn yotpo-visible-mobile\\\">\\n                \n                        <span class=\\\"yotpo-icon yotpo-icon-three-lines\\\"></span>\\n              \n                    </div>\\n              \n                    <div class=\\\"yotpo-dropdown-wrapper mobile-collapse\\\">\\n                \n                        <div class=\\\"yotpo-menu-mobile-collapse yotpo-hidden-mobile\\\">\\n                      \n                            <div class=\\\"yotpo-nav-dropdown-category yotpo-visible-mobile write-review-button\\\">\\n                        \n                                <span class=\\\"yotpo-icon yotpo-icon-write\\\"></span>\\n                        \n                                <span class=\\\"y-label\\\">write a review</span>\\n                      \n                            </div>\\n                      \n                            <div class=\\\"yotpo-nav-dropdown-category yotpo-visible-mobile write-question-button\\\">\\n                        \n                                <span class=\\\"yotpo-icon yotpo-icon-write\\\"></span>\\n                        \n                                <span class=\\\"y-label\\\">ask a question</span>\\n                      \n                            </div>\\n                \n                        </div>\\n              \n                    </div>\\n              \n                    <div class=\\\"yotpo-clr\\\"></div>\\n          \n                    <div class=\\\"yotpo-clr\\\"></div>\\n        \n                </div>\\n      \n            </div>\\n      \n            <!-- End Nav Bar -->\\n\\n      \n            <div class=\\\"yotpo-nav-content\\\">\\n        \n                <!-- Reviews -->\\n            \n                <div class=\\\"yotpo-reviews yotpo-active\\\" id=\\\"yotpo-reviews-bce6624b-0aaf-4566-a617-07a2e696997e\\\">\\n              \n                    <div class=\\\"yotpo-preloader-wrapper\\\">\\n    \n                        <div class=\\\"yotpo yotpo-pre-loader\\\">\\n\\t\\t\n                            <span class=\\\"yotpo-empty-stars\\\">\\n\\t\\t\\t\n                                <span class=\\\"yotpo-icon yotpo-icon-empty-star\\\"></span>\\n\\t\\t\\t\n                                <span class=\\\"yotpo-icon yotpo-icon-empty-star\\\"></span>\\n\\t\\t\\t\n                                <span class=\\\"yotpo-icon yotpo-icon-empty-star\\\"></span>\\n\\t\\t\\t\n                                <span class=\\\"yotpo-icon yotpo-icon-empty-star\\\"></span>\\n\\t\\t\\t\n                                <span class=\\\"yotpo-icon yotpo-icon-empty-star\\\"></span>\\n\\t\\t\n                            </span>\\n\\n\\t\\t\n                            <span class=\\\"yotpo-full-stars\\\">\\n\\t\\t\\t\n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n\\t\\t\\t\n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n\\t\\t\\t\n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n\\t\\t\\t\n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n\\t\\t\\t\n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n\\t\\t\n                            </span>\\n    \n                        </div>\\n\n                    </div>\\n    \n                    <!-- Start template -->\\n    \\n\\n\n                    <div class=\\\"yotpo-review yotpo-regular-box yotpo-hidden yotpo-template\\\" data-review-id=\\\"0\\\">\\n  \n                        <div class=\\\"yotpo-header yotpo-verified-user \\\">\\n\\t\\t            \n                            <span class=\\\"yotpo-icon-profile yotpo-header-element pull-left\\\">\\n\\t\\t              \n                                <label class=\\\"yotpo-user-letter\\\"></label>\\n\\t\\t              \n                                <span class=\\\"yotpo-icon yotpo-icon-circle-checkmark yotpo-action-hover\\\" data-type=\\\"toggleFade\\\" data-target=\\\"yotpo-tool-tip\\\"></span>\\n                    \n                            </span>\\n    \n                            <div class=\\\"yotpo-header-element\\\">\\n        \n                                <label class=\\\"y-label yotpo-user-name yotpo-font-bold pull-left\\\"></label>\\n          \n                                <div class=\\\"label-with-tooltip pull-left\\\">\\n              \n                                    <span class=\\\"y-label yotpo-user-title yotpo-action-hover\\\" data-type=\\\"toggleFade\\\" data-target=\\\"yotpo-tool-tip\\\">Verified Reviewer</span>\\n\\n            \n                                    <div class=\\\"yotpo-tool-tip yotpo-animation-fade\\\" data-user-type=\\\"yotpo-verified-user\\\">\\n              \n                                        <div class=\\\"tool-tip-header\\\">\\n                \n                                            <span>What is a</span>\\n                \n                                            <span class=\\\"header-blue\\\">Verified Reviewer</span>\\n              \n                                        </div>\\n              \n                                        <div class=\\\"tool-tip-content\\\">\\n                A Verified Reviewer is a shopper who has confirmed an email address, or connected a social network with Yotpo, providing an added level of transparency and trust.\\n              </div>\\n            \n                                    </div>\\n          \n                                </div>\\n      \n                                <div class=\\\"yotpo-clr\\\"></div>\\n      \n                                <span class=\\\"yotpo-review-stars\\\">\\n          \n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\n                                    <span class=\\\"yotpo-icon yotpo-icon-empty-star pull-left\\\"></span>\\n        \n                                </span>\\n      \n                                <div class=\\\"yotpo-clr\\\"></div>\\n    \n                            </div>\\n    \n                            <div class=\\\"yotpo-header-element yotpo-header-actions\\\">\\n      \n                                <label class=\\\"y-label yotpo-review-date\\\">03/16/15</label>\\n    \n                            </div>\\n  \n                        </div>\\n\\n  \n                        <div class=\\\"yotpo-main\\\">\\n    \n                            <div class=\\\"content-title yotpo-font-bold\\\">\\n      \\n    </div>\\n    \n                            <div class=\\\"yotpo-clr\\\"></div>\\n    \n                            <div class=\\\"yotpo-review-wrapper\\\">\\n      \n                                <div class=\\\"content-review\\\">\\n        \\n      </div>\\n    \n                            </div>\\n    \n                            <a href=\\\"\\\" target=\\\"_blank\\\">\n                                <div data-product-id=\\\"\\\"  class=\\\"y-label product-link\\\">On </div>\n                            </a>\\n  \n                        </div>\\n  \n                        <div class=\\\"yotpo-footer\\\">\\n        \n                            <div class=\\\"footer-actions\\\">\\n          \n                                <span class=\\\"yotpo-action\\\" data-type=\\\"toggleFade\\\" data-target=\\\"share-review\\\">\\n            \n                                    <span class=\\\"yotpo-icon yotpo-icon-share\\\"></span>\\n            \n                                    <label class=\\\"y-label\\\">share</label>\\n            \n                                    <span class=\\\"yotpo-icon yotpo-icon-seperator\\\"></span>\\n          \n                                </span>\\n          \n                                <span class=\\\"share-options-wrapper\\\">\\n  \n                                    <span class=\\\"share-options share-review\\\">\\n      \n                                        <label class=\\\"y-label yotpo-action\\\">\\n        \n                                            <a class=\\\"social-link popup-link\\\" data-network=\\\"facebook\\\" href=\\\"https://www.facebook.com/dialog/feed?app_id=226132034107547&display=popup&redirect_uri=http%3A%2F%2Fmy.yotpo.com%2Fshares%3Freview_id%3D\\\">\n                                                <i class=\\\"facebook share\\\">facebook</i>\n                                            </a>\\n      \n                                        </label>\\n      \n                                        <span class=\\\"yotpo-icon yotpo-icon-dot\\\"></span>\\n      \n                                        <label class=\\\"y-label yotpo-action\\\">\\n        \n                                            <a class=\\\"social-link popup-link\\\" data-network=\\\"twitter\\\" href=\\\"https://twitter.com/intent/tweet?via=yotpo\\\">\n                                                <i class=\\\"twitter share\\\">twitter</i>\n                                            </a>\\n      \n                                        </label>\\n      \n                                        <span class=\\\"yotpo-icon yotpo-icon-dot\\\"></span>\\n      \n                                        <label class=\\\"y-label yotpo-action\\\">\\n        \n                                            <a class=\\\"social-link popup-link\\\" data-network=\\\"LinkedIn\\\" href=\\\"https://www.linkedin.com/shareArticle?mini=true&source=Yotpo\\\">\n                                                <i class=\\\"LinkedIn share\\\">LinkedIn</i>\n                                            </a>\\n      \n                                        </label>\\n      \n                                        <span class=\\\"yotpo-icon yotpo-icon-dot\\\"></span>\\n      \n                                        <label class=\\\"y-label yotpo-action\\\">\\n        \n                                            <a class=\\\"social-link popup-link\\\" data-network=\\\"google\\\" href=\\\"https://plus.google.com/share?\\\">\n                                                <i class=\\\"google share\\\">google</i>\n                                            </a>\\n      \n                                        </label>\\n      \n                                        <span class=\\\"yotpo-icon yotpo-icon-separator\\\"></span>\\n    \n                                        <span class=\\\"yotpo-icon yotpo-icon-seperator\\\"></span>\\n  \n                                    </span>\\n\n                                </span>\\n        \n                            </div>\\n    \n                            <div class=\\\"yotpo-helpful\\\">\\n  \n                                <label class=\\\"y-label label-helpful\\\">Was this review helpful?</label>\\n  \n                                <div class=\\\"yotpo-icon-btn-small transparent-color-btn vote-btn\\\" data-type=\\\"up\\\">\\n    \n                                    <span class=\\\"yotpo-icon yotpo-icon-thumbs-up\\\"></span>\\n  \n                                </div>\\n  \n                                <label class=\\\"y-label yotpo-sum vote-sum\\\" data-type=\\\"up\\\">0</label>\\n  \n                                <div class=\\\"yotpo-icon-btn-small transparent-color-btn vote-btn\\\" data-type=\\\"down\\\">\\n    \n                                    <span class=\\\"yotpo-icon yotpo-icon-thumbs-down\\\"></span>\\n  \n                                </div>\\n  \n                                <label class=\\\"y-label yotpo-sum vote-sum\\\" data-type=\\\"down\\\">0</label>\\n\n                            </div>\\n    \n                            <div class=\\\"footer-additional-actions\\\">\\n      \n                                <label class=\\\"y-label yotpo-review-date\\\">03/16/15</label>\\n    \n                            </div>\\n    \n                            <div class=\\\"yotpo-clr\\\"></div>\\n  \n                        </div>\\n\\n  \n                        <!-- Reviews Comments -->\\n  \n                        <!-- End Reviews Comments -->\\n\n                    </div>\\n    \n                    <!-- End template -->\\n    \n                    <!-- Pagination -->\\n    \\n    \n                    <!-- End Pagination -->\\n    \n                    <!-- first to write -->\\n    \\n\n                    <div class=\\\"yotpo-first-review\\\" >\\n    \n                        <div class=\\\"yotpo-first-review-stars\\\">\\n        \n                            <span class=\\\"stars-wrapper\\\">\\n          \n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n          \n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n          \n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n          \n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n          \n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n        \n                            </span>\\n    \n                        </div>\\n\\n  \n                        <div class=\\\"yotpo-first-review-content\\\">\\n        \n                            <input type=\\\"button\\\" class=\\\"yotpo-default-button write-review-button write-first-review-button\\\" value=\\\"be the first to write a review\\\"/>\\n  \n                        </div>\\n\n                    </div>\\n\\n            \n                </div>\\n        \n                <!-- End Reviews -->\\n\\n        \n                <!-- QA -->\\n            \n                <div class=\\\"yotpo-questions \\\" id=\\\"yotpo-questions-bce6624b-0aaf-4566-a617-07a2e696997e\\\">\\n                      \n                    <!-- Pagination -->\\n        \\n        \n                    <!-- End Pagination -->\\n    \n                    <!-- first to write -->\\n    \\n\n                    <div class=\\\"yotpo-first-review\\\" >\\n    \n                        <div class=\\\"yotpo-first-review-stars\\\">\\n        \n                            <span class=\\\"stars-wrapper\\\">\\n          \n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n          \n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n          \n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n          \n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n          \n                                <span class=\\\"yotpo-icon yotpo-icon-star\\\"></span>\\n        \n                            </span>\\n    \n                        </div>\\n\\n  \n                        <div class=\\\"yotpo-first-review-content\\\">\\n        \n                            <input type=\\\"button\\\" class=\\\"yotpo-default-button write-question-button write-first-question-button\\\" value=\\\"be the first to ask a question\\\"/>\\n  \n                        </div>\\n\n                    </div>\\n\\n            \n                </div>\\n        \n                <!-- End QA -->\\n      \n            </div>\\n\\n\n        </div>\\n\n        <!-- Widget End -->\"},{\"method\":\"bottomline\",\"result\":{\"total\":0,\"average_score\":0}}]\n","language":"yaml","status":200}]},"settings":"","auth":"required","params":[{"_id":"54bfa249dcfc4d0d00a1a1ce","ref":"","in":"body","required":true,"desc":"Your Yotpo account API key","default":"","type":"string","name":"app_key"},{"_id":"54bf9b5cd03bfc0d0000e7de","ref":"","in":"body","required":false,"desc":"An array of widget types (methods) and an hash of the parameters for each method.","default":"","type":"string","name":"methods[method]"},{"_id":"56cdc348388ec62500cfbefd","ref":"","in":"body","required":false,"desc":"The specific parameters for the method","default":"","type":"object","name":"methods[params]"},{"_id":"56cdc5d1f099c0230097917a","ref":"","in":"body","required":false,"desc":"Defines if the response should be for a mobile device or a desktop","default":"false","type":"boolean","name":"is_mobile"}],"url":"/batch"},"isReference":false,"order":999,"body":"##Batch Payload Types\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Methods\",\n    \"h-1\": \"Parameters\",\n    \"1-0\": \"bottomline\",\n    \"1-1\": \"* pid - The product sku for which to bring the bottom line widget.\\n* skip_average_score - Boolean value to show or hide the average score in the bottom line.\\n* format - The format to return the result\\n  * HTML (default)\\n  * JSON\",\n    \"0-0\": \"main_widget\",\n    \"0-1\": \"* pid- The product sku for which to bring the main reviews widget.\",\n    \"h-2\": \"Batch Result\",\n    \"0-2\": \"Full HTML of a reviews widget which belongs to a specific product\",\n    \"1-2\": \"Star rating widget that belongs to the same specific product\",\n    \"2-0\": \"testimonials\",\n    \"2-1\": \"* data-product-readonly - a flag to enable or disable the ability to write new reviews (false if not specified)\",\n    \"2-2\": \"Reviews tab that opens the site and product reviews pop-up\",\n    \"3-0\": \"embedded\",\n    \"3-2\": \"Embedded widget.\",\n    \"3-1\": \"* per_page - number of reviews per page\\n*  view - customizations for the embedded widget. Refer to your Yotpo Admin page as well.\\n  * type\\n  * layout\\n  * width\\n * headerText\\n * transparency\\n * headerBackgroundColor\\n * bodyBackgroundColor\\n * fontSize\\n * fontColor\",\n    \"4-0\": \"badge\",\n    \"4-1\": \"* None (*\\\"params\\\" : {}*)\",\n    \"4-2\": \"The Yotpo badge\",\n    \"5-0\": \"questions_bottomline\",\n    \"5-2\": \"A summary of the number of questions and answers per product\",\n    \"5-1\": \"* pid - The product sku for which to bring the questions and answers\"\n  },\n  \"cols\": 3,\n  \"rows\": 6\n}\n[/block]\nThe methods parameter is an array of methods. Each method is a hash containing the method and parameters, which is an hash of the parameters for the method.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Note:\",\n  \"body\": \"Include the an empty params attribute - *\\\"params\\\" : {}* - for the badge method.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Note:\",\n  \"body\": \"The pid parameter is mandatory.\\nThe pid parameter cannot contain the \\\"/\\\" symbol.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Note:\",\n  \"body\": \"It is highly recommended to develop a cache mechanism to save the payload locally and to refresh it periodically.\\nThe purpose of this caching is to avoid long loading times every time the widget loads.\"\n}\n[/block]","excerpt":"","slug":"retrieve-the-reviews-payload-in-html","type":"endpoint","title":"Retrieve the Reviews Payload in HTML"}

postRetrieve the Reviews Payload in HTML


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

app_key:
required
string
Your Yotpo account API key
methods[method]:
string
An array of widget types (methods) and an hash of the parameters for each method.
methods[params]:
object
The specific parameters for the method
is_mobile:
booleanfalse
Defines if the response should be for a mobile device or a desktop

Examples


Result Format


Documentation

##Batch Payload Types [block:parameters] { "data": { "h-0": "Methods", "h-1": "Parameters", "1-0": "bottomline", "1-1": "* pid - The product sku for which to bring the bottom line widget.\n* skip_average_score - Boolean value to show or hide the average score in the bottom line.\n* format - The format to return the result\n * HTML (default)\n * JSON", "0-0": "main_widget", "0-1": "* pid- The product sku for which to bring the main reviews widget.", "h-2": "Batch Result", "0-2": "Full HTML of a reviews widget which belongs to a specific product", "1-2": "Star rating widget that belongs to the same specific product", "2-0": "testimonials", "2-1": "* data-product-readonly - a flag to enable or disable the ability to write new reviews (false if not specified)", "2-2": "Reviews tab that opens the site and product reviews pop-up", "3-0": "embedded", "3-2": "Embedded widget.", "3-1": "* per_page - number of reviews per page\n* view - customizations for the embedded widget. Refer to your Yotpo Admin page as well.\n * type\n * layout\n * width\n * headerText\n * transparency\n * headerBackgroundColor\n * bodyBackgroundColor\n * fontSize\n * fontColor", "4-0": "badge", "4-1": "* None (*\"params\" : {}*)", "4-2": "The Yotpo badge", "5-0": "questions_bottomline", "5-2": "A summary of the number of questions and answers per product", "5-1": "* pid - The product sku for which to bring the questions and answers" }, "cols": 3, "rows": 6 } [/block] The methods parameter is an array of methods. Each method is a hash containing the method and parameters, which is an hash of the parameters for the method. [block:callout] { "type": "info", "title": "Note:", "body": "Include the an empty params attribute - *\"params\" : {}* - for the badge method." } [/block] [block:callout] { "type": "info", "title": "Note:", "body": "The pid parameter is mandatory.\nThe pid parameter cannot contain the \"/\" symbol." } [/block] [block:callout] { "type": "info", "title": "Note:", "body": "It is highly recommended to develop a cache mechanism to save the payload locally and to refresh it periodically.\nThe purpose of this caching is to avoid long loading times every time the widget loads." } [/block]