src/api/v3/converter.js
function createEntryRequest(entry) {
    var xw = createXMLWriter(true);

    Object.keys(entry).forEach(function(key) {
        xw = xw.startElement('gsx:' + key)
            .text(util.coerceNumber(entry[key]).toString())
            .endElement();
    });

    return xw.endElement().toString();
}
function createEntryRequest(entry) {
    var xw = createXMLWriter(true);

    Object.keys(entry).forEach(function(key) {
        xw = xw.startElement('gsx:' + key)
            .text(util.coerceNumber(entry[key]).toString())
            .endElement();
    });

    return xw.endElement().toString();
}
function createEntryRequest ( entry ) { var xw = createXMLWriter ( true ) ; Object . keys ( entry ) . forEach ( function ( key ) { xw = xw . startElement ( 'gsx:' + key ) . text ( util . coerceNumber ( entry [ key ] ) . toString ( ) ) . endElement ( ) ; } ) ; return xw . endElement ( ) . toString ( ) ; }
Creates 'create entry' request payload.

@param entry
@returns {*}
Creates create entry request payload .