mailtrain icon indicating copy to clipboard operation
mailtrain copied to clipboard

Some parameters not saved using API

Open inkhey opened this issue 6 years ago • 3 comments

Hello !

Using v2 Beta docker. i'm using API to add subscription to a list:

> http post 'http://localhost:3000/api/subscribe/XXXX?access_token=XXXX' EMAIL='[email protected]' FIRST_NAME='Toto' LAST_NAME='TOTO'
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 27
Content-Type: application/json; charset=utf-8
Date: Fri, 11 Oct 2019 13:08:37 GMT
ETag: W/"1b-C8e0kiIVjF1MJBZZLpkOKAeg26Q"
Vary: Accept-Encoding

{
    "data": {
        "id": "K4JyXSJt-"
    }
}

It's working but i get this in edit view for subscription:

Capture du 2019-10-11 15-19-13

FIRST_NAME and LAST_NAME are not handled correctly.

inkhey avatar Oct 11 '19 13:10 inkhey

It's working with Merge tag MERGE_FIRST_NAME. Documentation is not correct as it say to use FIRST_NAME which doesn't work.

inkhey avatar Oct 11 '19 14:10 inkhey

Thanks for reporting it. I'll be happy to accept a PR on addressing the issue in the documentation.

bures avatar Oct 31 '19 19:10 bures

@inkhey thx a lot. That hint took me a step further. Though the names seem to be lowercased.

Any suggestions on how to fix that? @bures maybe?

l4b4r4b4b4 avatar Apr 17 '22 17:04 l4b4r4b4b4

We are going to start with the development and testing of mailtrain v3 in the next weeks.

You are welcome to help us with the testing as soon as the first release candidate is available.

forgeOneHQ avatar Mar 16 '24 08:03 forgeOneHQ