POST REQUEST WITH ADDITIONAL HEADERS : Help that alone and lost french guy please

hadry

Новичок
Регистрация
15.12.2020
Сообщения
1
Благодарностей
0
Баллы
1
Hi everyone !

I hopefully post my question here in a new thread.

I work withzennoposter since some years, and i think that i'm doing well. But but but... I do not know how to say hello in c##, and i need some help for create a POST REQUEST WITH ADDITIONAL HEADERS :bc::bc::bc::bc::bc::bc::bc:

The post request i need to do is using Sendin blue API.
All the informations are distributed on two kind :
- Headers
- Json

URL to post :



These are my 3 headers :
api-key : mysecretapikeyiwontshareonaforum :aq:
accept : application/json
content-type : application/json

This is my json content :

{
"to":[
{
"email":"{-variable.email}"
}
],
"templateId":3,
"bcc":[
{
"email":"[email protected]","name":"XXX"

}
]
}

NB : BCC is not variable.

I have red hundred time the documentation : https://help.zennolab.com/en/v5/zennoposter/5.4/ZennoLab.CommandCenter~ZennoLab.CommandCenter.ZennoPoster~HttpPost.html

But i'm a newbie in C# and i didn't use it successfully.

here is my problem. I spend few days on the web looking for the potential magic thread on a dark forum, deep into the web, but i did not find it.

I hope someone is going to give me the solution ! Thank you all.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 219
Благодарностей
5 843
Баллы
113
Like this:
AdditionalHeaders: header

or
AdditionalHeaders: new string[] {
"Accept: " + project.Profile.HTTPAccept,
"Accept-Encoding: " + project.Profile.AcceptEncoding,
"Accept-Language: " + project.Profile.AcceptLanguage,
},
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)