Welcome, Guest. Please login or register.

Author Topic: API: can I get the msgId for a sent message when I send it?  (Read 162 times)

davids

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
API: can I get the msgId for a sent message when I send it?
« on: April 12, 2018, 01:00:41 PM »
We're using the api and when I send a message I'd like to get a unique identifier for the message so that I can maintain a thread after another app responds to my message.  So in short: I would like to get the msgId for the sent message as the return value from the sendMessage() method.  The API says "sendMessage() returns ackdata encoded in hex."  It's not clear what ackdata is and what it's used for.  I looked at the source and it's the return value from an encryption method, however that still doesn't tell me if it would serve my purpose.  Thanks.

AyrA

  • BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1261
  • Karma: +75/-7
  • bitmessage.ch and timeservice operator
    • View Profile
    • AyrAs Homepage
Re: API: can I get the msgId for a sent message when I send it?
« Reply #1 on: June 14, 2018, 12:10:04 PM »
The API call getSentMessageByAckData returns a message object with the msgid field populated.
My Address: BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
Bitmessage Time Service (Subscribe): BM-BcbRqcFFSQUUmXFKsPJgVQPSiFA3Xash
Support the Multipart Message Declaration Draft for Bitmessage: https://bitmessage.org/forum/index.php/topic,1553.0.html
Free Bitmessage to E-Mail Gateway: https://bitmessage.ch