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
| <mvt:capture variable="l.request_json"> | |
| { | |
| "foo": "bar", | |
| "thing": 1 | |
| } | |
| </mvt:capture> | |
| <mvt:assign name="l.response" value="''" /> | |
| <mvt:call method="'RAW'" content-type="'application/json'" fields="'l.request_json'" action="'https://jsonplaceholder.typicode.com/posts/'"> | |
| <mvt:assign name="l.response" value="l.response $ s.callvalue" /> |
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
| <h1>Heading 1</h1> | |
| <h2>Heading 2</h2> | |
| <h3>Heading 3</h3> | |
| <h4>Heading 4</h4> | |
| <h5>Heading 5</h5> | |
| <h6>Heading 6</h6> | |
| <p>Paragraph</p> | |
| <ol> |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <base href="/mm5/"> | |
| <title>picture</title> | |
| <style> | |
| img { | |
| max-width: 150px; |
Uses JavaScript's CryptoJS library within a Postman Pre-Request script to: parse the request-body, create a SHA256 HMAC signature, build the Miva JSON API's authorization HTTP Header, and add the header to the current Postman request.
- Navigate to the "Miva Admin > Settings > Users > API Tokens"
- Edit a token
| Name | Submit Variable | Front End Variable | Default |
|---|---|---|---|
| Root Directory for Graphics | g.Domain_ImageRoot |
g.domain:image_root |
/mm5/ |
| Secure Root Directory for Graphics | g.Domain_SecureBaseURL |
g.domain:img_sroot, g.imageroot |
/mm5/ |
| Base URL for Graphics | g.Domain_BaseURL |
g.domain:base_url, g.baseurl |
http://www.example.com/mm5/ |
| Secure Base URL for Graphics | g.Domain_SecureBaseURL |
g.domain:base_surl, g.secure_baseurl, g.basehref |
https://www.example.com/mm5/ |
| Profile | download (kb/s) | upload (kb/s) | latency (ms) |
|---|---|---|---|
| Native | 0 | 0 | 0 |
| GPRS | 50 | 20 | 500 |
| 56K Dial-up | 50 | 30 | 120 |
| Mobile EDGE | 240 | 200 | 840 |
| 2G Regular | 250 | 50 | 300 |
| 2G Good | 450 | 150 | 150 |
| 3G Slow | 780 | 330 | 200 |
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
| <mvt:do file="g.Module_Feature_URI_DB" name="l.success" value="URISettings_Load_Cached( l.uri_settings )" /> | |
| <mvt:do file="g.Module_Feature_URI_UT" name="l.settings:request_url" value="URL_Build_URI( l.uri_settings, l.flags, s.request_uri, '' )" /> | |
| &mvt:request_url; |
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
| <mvt:call action="'https://www.example.com'" method="'GET'"> | |
| <mvt:assign name="l.settings:headers" value="s.callreturnheader" /> | |
| </mvt:call> | |
| <mvt:foreach iterator="header" array="headers"> | |
| <mvt:if expr="'Content-Length:' IN l.settings:header EQ 1"> | |
| <mvt:assign name="l.found" value="miva_splitstring( l.settings:header, ':', l.header_parts, 'trim' )" /> | |
| <mvt:assign name="l.content_length" value="l.header_parts[2]" /> | |
| </mvt:if> | |
| </mvt:foreach> |
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
| <pre> | |
| @@price | |
| product:price=&mvte:product:price; | |
| product:inv_level=&mvte:product:inv_level; | |
| attributemachine:product:price=&mvte:attributemachine:product:price; | |
| attributemachine:product:inv_level=&mvte:attributemachine:product:inv_level; | |
| attributemachine:variant_id=&mvte:attributemachine:variant_id; | |
| <mvt:assign name="g.mvt_debug" value="glosub( miva_array_serialize( l.settings:product ), ',', asciichar( 10 ) )" /> | |
| @@l.settings:product |
NewerOlder