-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add vanity_url
to /v1/content
output
#219
Comments
I need to dig further, but I suspect this might actually be a bug in the API of connect itself. From the API docs:
Which to me reads as: the content_url will be the vanity if a vanity has been set or the GUID version if not, but when I tried it myself just now on content I know has a vanity I got back only the GUID. Why else would the docs mention vanity URL at all? But I'll need to dig into that and see if I can figure out what's wrong there. This is a bit annoying, but you could also use |
Should have reported back here earlier — it turns out that the docs were wrong. I've updated them, but vanities are not available there. They could (and probably should) be added to the API, but they are not there today. So we'll have to do something like this in the meantime :(
|
/v1/content
providesdashboard_url
andcontent_url
but does not provide the vanity URL, if set.The old
get_content_old()
function would provide a TRUE/FALSE value forvanity_url
and reported the url as thecontent_url
.The ergonomics of doing multiple API calls to get content info, get list of vanity url, and then joining is awkward.
The text was updated successfully, but these errors were encountered: