Get Categories

Retrieves a list of categories by category type.


Function

  • getCategories()

Url

  • POST: /PuresendService/v1/getCategories

Parameters

  • categoryType: int
    • Category Type.
      • 3 for regular messages
      • 4 for template messages
      • 5 for confirmation messages
      • 6 for landing page messages
      • 7 for jobs
      • 8 for lists
      • 9 for seed lists

Return

  • CategoryInfo[]:
    • array of CategoryInfo Objects

Exception

  • Exception

Documentation

  • Retrieves a list of categories by category type.

Examples

{
    "categoryType": 3
}
[
    {
        "categoryId": 59,
        "parentId": -1,
        "name": "categortA",
        "categoryType": 3
    },
    {
        "categoryId": 242,
        "parentId": 59,
        "name": "categortB",
        "categoryType": 3
    }
]