Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method parameters

Returns a list of available templates

  • string GetTemplates(string accessKey, int listID)
  • accessKey:

...

  •  access key obtained using the Login method
  • listID: ID of the list within which the newsletter has to be created. Lists and corresponding IDs can be obtained calling the GetLists Method

If error code=0, the message will contain a list of available templates.

Sample GetTemplates response

Code Block
languagehtml/xml
linenumberstrue
<GetTemplatesResult>
    <errorCode>0</errorCode>
    <errorDescription></errorDescription>
    <list>
        <listID>1</listID>
        <listName>DEMO</listName>
        <templates>
            <template>
                <templateID>2976</templateID>
                <templateSubject>Blu banner 6 sezioni vert.</templateSubject>
                <templateLink>Link to preview image</templateLink>
            </template>
            <template>
                <templateID>2977</templateID>
                <templateSubject>Rosso unica sezione 3img.</templateSubject>
                <templateLink></templateLink>
            </template>
        </templates>
    </list>
</GetTemplatesResult>