<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
{ | |
"sections": [ | |
{ | |
"section": "AUTOPEÇAS", | |
"data": [ | |
{ | |
"CEST": "01.001.00", | |
"ITEM": "1", | |
"NCM/SH": "3815.12.10", | |
"DESCRICAO": "Catalisadores em colmeia cerâmica ou metálica para conversão catalítica de gases de escape de veículos e outros catalisadores" |
pm.globals.set("generateCpfCnpjFunction", ` | |
function generateCpfCnpj(isCpf, format) { | |
//--CPF | |
function calculateVerificationDigit(part1, part2, part3, firstVerificationDigit) { | |
const numbers = \`\${part1}\${part2}\${part3}\`.split(""); | |
if (firstVerificationDigit !== undefined) { | |
numbers[9] = firstVerificationDigit; | |
} |
const gregorian_chars = [ | |
{ id: 1, text: 'Alpha', color: 'violet', symbol:'α', letter:'A' }, | |
{ id: 2, text: 'Beta', color: 'dodgerblue', symbol:'β', letter:'B' }, | |
{ id: 3, text: 'Gama', color: 'green', symbol:'γ', letter:'Γ' }, | |
{ id: 4, text: 'Delta', color: 'orange', symbol:'δ', letter:'Δ' }, | |
{ id: 5, text: 'Épsilon', color: 'brown', symbol:'ε', letter:'E' }, | |
{ id: 6, text: 'Zeta', color: 'red', symbol:'ζ', letter:'Z' }, | |
{ id: 7, text: 'Etá', color: 'blue', symbol:'η', letter:'H' }, | |
{ id: 8, text: 'Teta', color: 'gray', symbol:'θ', letter:'Θ' }, | |
{ id: 9, text: 'Iota', color: 'yellow', symbol:'ι', letter:'I' }, |
VERSION FRAMEWORK7 v4 | |
//Structure INDEX.HTML | |
----------------------------------- | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> |
public function new_cpt_service() { | |
$labels = array( | |
'name' => _x( 'Servicos', 'api' ), | |
'singular_name' => _x( 'Serviço', 'api' ), | |
'add_new' => _x( 'Adicionar novo', 'api' ), | |
'add_new_item' => __( 'Novo serviço', 'api' ), | |
'edit_item' => __( 'Editar serviço', 'api' ), | |
'new_item' => __( 'Novo serviço', 'api' ), | |
'all_items' => __( 'Todos os serviços', 'api' ), | |
'view_item' => __( 'Visualizar serviço', 'api' ), |
// EDIT ORDER | |
[28-Jan-2020 01:44:47 UTC] Automattic\WooCommerce\Admin\Overrides\Order Object | |
( | |
[refunded_line_items:protected] => | |
[status_transition:protected] => | |
[data:protected] => Array | |
( | |
[parent_id] => 0 | |
[status] => completed | |
[currency] => BRL |
/* | |
// credentials.json | |
{ | |
"installed": { | |
"client_id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com", | |
"project_id": "XXXXXXXXXXXXXXXXXXXXXXXX", | |
"auth_uri": "https://accounts.google.com/o/oauth2/auth", | |
"token_uri": "https://oauth2.googleapis.com/token", | |
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", |
# request.xml | |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wst="http://sensedia.com/repository/wstoolkit"> | |
<soapenv:Header> | |
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
<wsse:UsernameToken wsu:Id="UsernameToken-1"> | |
<wsse:Username>system</wsse:Username> | |
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">manager</wsse:Password> | |
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">DWk64SMfJ6RxHAKgPRGtPA==</wsse:Nonce> | |
<wsu:Created>2013-04-17T18:36:54.013Z</wsu:Created> | |
</wsse:UsernameToken> |
function convertToCSV(objArray) { | |
var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray; | |
var str = ''; | |
for (var i = 0; i < array.length; i++) { | |
var line = ''; | |
for (var index in array[i]) { | |
if (line != '') line += ',' | |
line += array[i][index]; |