# marketo-soap-security

> Security object for node 'soap' module for accessing Marketo's SOAP API.

Latest version **0.0.2** (published 2012-09-24) · 0 weekly downloads

## Install

```sh
npm install marketo-soap-security
pnpm add marketo-soap-security
yarn add marketo-soap-security
bun add marketo-soap-security
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2012-09-24 |
| First published | 2012-09-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | George Zahariev |
| Maintainers | gkz |
| Keywords | marketo, soap, api, security |

## Links

- npm: https://www.npmjs.com/package/marketo-soap-security
- Repository: https://github.com/gkz/marketo-soap-security
- npm.io page: https://npm.io/package/marketo-soap-security

## Recent versions

- 0.0.2 (latest) — 2012-09-24
- 0.0.1 — 2012-09-24

## README

marketo-soap-security
=====================

For use with [node soap module](https://github.com/milewise/node-soap) as the security object for accessing Marketo's SOAP API.

Written in LiveScript, but accessible from JavaScript.

# Exports:

## MarketoSecurity

This is a class. Constructor parameters:

client-access-ID
secret-key

Use (in LiveScript):

    soap              = require \soap
    {MarketoSecurity} = require \marketo-soap-security

    wsdl-url = 'https://na-c.marketo.com/soap/mktows/1_7?WSDL'
    err, client <- soap.create wsdl-url
    client.set-security MarketoSecurity do
        'your client access ID here'
        'your secret key here'

    ...

Use (in JavaScript):

    var soap, MarketoSecurity, wsdlUrl;
    soap = require('soap');
    MarketoSecurity = require('marketo-soap-security').MarketoSecurity;
    wsdlUrl = 'https://na-c.marketo.com/soap/mktows/1_7?WSDL';
    soap.create(wsdlUrl, function(err, client){
      return client.setSecurity(MarketoSecurity('your client access ID here', 'your secret key here'));
    });

## get-W3C-timestamp (getW3CTimestamp)

A function. Takes a date and returns a properly formated W3C timestamp.

Use (in LiveScript):

    {get-W3C-timestamp} = require \marketo-soap-security
    timestamp = get-W3C-timestamp new Date '2012-09-12'

Use (in JavaScript):

    var getW3CTimestamp, timestamp;
    getW3CTimestamp = require('marketo-soap-security').getW3CTimestamp;
    timestamp = getW3CTimestamp(new Date('2012-09-12'));

---
_Source: https://npm.io/package/marketo-soap-security · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
