Options

Create Album 401

akpalmerakpalmer Registered Users Posts: 2 Beginner grinner
can some on tell me what Im doing wrong here. This is driven from the python example. I am trying to create a album but I keep getting {"Code":401,"Message":"Unauthorized"}. I checked the token permissions and it says FULL, Modify. Thanks in advance.

service = get_service()

session = OAuth1Session(
service.consumer_key,
service.consumer_secret,
access_token='XXXX',
access_token_secret='XXXX')
print(session.request('POST',API_ORIGIN + '/api/v2/node/t4TJx6!children',json={"Type": "Album", "Name": "TestAlbum", "UrlName": "TestAlbumUri","Privacy": "Public"},headers={'Accept': 'application/json' }).text)
Sign In or Register to comment.