Update Money Stuff sign up url

This commit is contained in:
Hongbo Wu 2022-05-18 11:50:43 +08:00
parent 5b36f9270e
commit d9d4deb14c

View file

@ -206,13 +206,15 @@ class MilkRoadHandler extends SubscribeHandler {
class MoneyStuffHandler extends SubscribeHandler {
async _subscribe(email: string): Promise<string[]> {
await axios.post(
'https://login.bloomberg.com/api/engagements/follow-author',
await axios.put(
`https://login.bloomberg.com/api/newsletters/update?email=${encodeURIComponent(
email
)}&source=&notify=true&optIn=false`,
{
headers: {
'content-type': 'application/json',
},
body: `{"email":"${email}","optIn":false,"topic":"18273090","authorId":"18273090","authorName":"Matt Levine"}`,
body: '{"Money Stuff":true}',
}
)