Error when using POST in a Pro+ account

33 views
Skip to first unread message

Feng Xiao

unread,
Apr 10, 2023, 3:41:12 PM4/10/23
to Feedly Cloud
Hi there, I'm trying to post a new article to a specific board, but got the following error. Can anyone help me?

{"errorCode":405,"errorId":"ap12int-sv2.2023041012.1775309","errorMessage":"POST not allowed"}

This is my code:
import requests
import json

feedly_access_token = 'My_Token'
# define the article to add
article = {
    'title': 'Article title',
    'alternate': [{'href': 'https://example.com/article'}],
    'categories': [{'label': 'AI'}]
}

# add the article to the specified board
headers = {'Authorization': f'OAuth {feedly_access_token}', 'Content-Type': 'application/json'}
response = requests.post(endpoint_url, headers=headers, data=json.dumps(article))

# check the response
if response.status_code == 200:
    print('Article added successfully.')
else:
    print(f'Error adding article: {response.text}')

David Chatenay

unread,
Apr 11, 2023, 4:05:15 PM4/11/23
to Feng Xiao, Feedly Cloud
  Hi,
  To save an article to a board, you need to use the entries API:
  Hope this helps,

-- 
David Chatenay
Platform Engineer
Feedly


--
You received this message because you are subscribed to the Google Groups "Feedly Cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to feedly-cloud...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/feedly-cloud/6c7c1701-6095-4c8b-8772-ad6381d152d9n%40googlegroups.com.

Feng Xiao

unread,
Apr 13, 2023, 5:49:39 PM4/13/23
to Feedly Cloud
It works, when I use endpoint_url = f"https://cloud.feedly.com/v3/entries"
Thanks! 

Reply all
Reply to author
Forward
0 new messages