|
5 | 5 | <meta content="http://branch.io/img/logo_icon_black.png" property="og:image" /> |
6 | 6 | <meta content="Branch Metrics Web SDK Example App" property="og:title" /> |
7 | 7 | <meta content="A basic example to demonstrate some of the ways that the Web SDK can be used" property="og:description" /> |
8 | | - <meta content='key_place_holder' name='branch_key'/> |
| 8 | + <meta content='your_key_here' name='branch_key'/> |
9 | 9 | <title>Branch Metrics Web SDK Example App</title> |
10 | 10 | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> |
11 | 11 | <style type="text/css"> |
@@ -82,7 +82,9 @@ <h4>QR Code</h4> |
82 | 82 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> |
83 | 83 | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> |
84 | 84 | <script type="text/javascript"> |
85 | | - (function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="SCRIPT_URL_HERE";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener banner closeBanner closeJourney data deepview deepviewCta first init link logout removeListener setBranchViewData setIdentity track trackCommerceEvent logEvent disableTracking getBrowserFingerprintId crossPlatformIds lastAttributedTouchData setAPIResponseCallback qrCode setRequestMetaData setDMAParamsForEEA setAPIUrl getAPIUrl".split(" "), 0); |
| 85 | + (function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="dev/build.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener banner closeBanner closeJourney data deepview deepviewCta first init link logout removeListener setBranchViewData setIdentity track trackCommerceEvent logEvent disableTracking getBrowserFingerprintId crossPlatformIds lastAttributedTouchData setAPIResponseCallback qrCode setRequestMetaData setDMAParamsForEEA setAPIUrl getAPIUrl".split(" "), 0); |
| 86 | + |
| 87 | + // branch.setAPIUrl("https://api.stage.branch.io") |
86 | 88 |
|
87 | 89 | branch.setAPIResponseCallback(function(url, method, requestBody, error, status, responseBody) { |
88 | 90 | console.log('Request: ' + method + ' ' + url + ' body=' + JSON.stringify(requestBody)); |
@@ -248,8 +250,9 @@ <h4>QR Code</h4> |
248 | 250 | "code_color":"#000000", |
249 | 251 | "background_color": "#FFFFFF", |
250 | 252 | "margin": 5, |
251 | | - "width": 1000, |
252 | | - "image_format": "png" |
| 253 | + "width": 2000, |
| 254 | + "image_format": "png", |
| 255 | + "center_logo_url": "https://cdn.branch.io/branch-assets/1570220119072-og_image.png", |
253 | 256 | }; |
254 | 257 | var qrCodeParams = { |
255 | 258 | tags: [ 'tag1', 'tag2' ], |
|
0 commit comments