Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <script type='text/javascript' src='http://www.manmade.se/shopify/addtohomescreen/jquery.1.7.2.min.js'></script>;
- <script type="text/javascript">
- $(document).ready(function() {
- var url = 'https://manmade-shop.myshopify.com/admin/oauth/access_token';;
- var data = JSON.stringify({ client_id: 'xxxxx', client_secret: 'xxxxxx', scope: 'read_products' });
- $.ajax({
- type: 'GET',
- url: url,
- data: data,
- success: function(data) {
- alert("ok");
- //debugger;
- },
- error: function(data) {
- alert("not ok");
- // debugger;
- }
- });
- });
- </script>
- </head>
- <body>
- Hello World!
- </body>
- </html>
Add Comment
Please, Sign In to add comment