mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update Money Stuff sign up url
This commit is contained in:
parent
5b36f9270e
commit
d9d4deb14c
1 changed files with 5 additions and 3 deletions
|
|
@ -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=¬ify=true&optIn=false`,
|
||||
{
|
||||
headers: {
|
||||
'content-type': 'application/json',
|
||||
},
|
||||
body: `{"email":"${email}","optIn":false,"topic":"18273090","authorId":"18273090","authorName":"Matt Levine"}`,
|
||||
body: '{"Money Stuff":true}',
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue