Pull in the user profile/settings/default publication/published posts#23
Merged
ma2za merged 10 commits intoma2za:mainfrom Dec 6, 2023
Merged
Pull in the user profile/settings/default publication/published posts#23ma2za merged 10 commits intoma2za:mainfrom
ma2za merged 10 commits intoma2za:mainfrom
Conversation
Adds details on how to find your user_id and how to set a password if you have an account that doesn't have one
…ation / get a list of all accessible publications / user settings / user profile.
…requires one extra step after login to get cookies)
Owner
|
hey, thanks a lot, especially for the user id method. Can you put a deprecated warning on the publication_url parameter? I'll take it out in future versions. |
Owner
|
If the parameter is None, then set it to the primary publication. |
Contributor
Author
|
Yeah, will do. |
Contributor
Author
|
@ma2za I couldn't find any reasonable way to mark a parameter in python as deprecated, and since Python doesn't allow Constructor overloading, I couldn't mark the "function" as deprecated either... However, I think the approach I took to matching up a URL to the new "publication" object works well. Let me know what you think. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds several new endpoint calls to pull in the user profile/settings/published posts/get draft
This allows for:
I also made it so you can change the publication after api instantiation in case you want to change which publication you are working on; and by default it uses the users default publication.
I ran into a lot of issues because I have a
custom_domain. This lead to all sorts of cookie issues.Some examples of the new calls: