Retrieve topic
One topic with what holds for a contact who never chose.
opensend.topics.get(id)opensend topics getInput
id goes first, on its own, and the rest in one object. One object that holds id works too.
idstringRequiredThe id of the item. Up to 64 characters.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"topic"Always
topic.idstringThe id of the topic.
namestringThe name of the topic, as readers see it.
descriptionstringWhat the topic is about, as readers see it. Empty when not set.
defaultSubscriptionstringWhat holds for a contact who never chose:
opt_in, they get it, oropt_out, they do not.One of
opt_inopt_outvisibilitystringpublicwhen every reader sees the topic on the page where they manage their mail,privatewhen only those who chose it do.One of
publicprivatesubscriptionstring | nullWhat the contact you listed the topics for gets:
opt_inoropt_out.nullwhen you named no contact.One of
opt_inopt_outcreatedAtstringWhen the topic was made.