Can I change the user behind the VotableThing instance?
See original GitHub issueImagine I have two logins:
var importReddit = new Reddit();
importReddit.LogIn(TargetUsername, TargetPassword);
var exportReddit = new Reddit();
exportReddit.LogIn(DestUsername, DestPassword);
var savedThingies = importAccount.GetSaved();
How can I then transfer the saved things to the second account?
Ideally, I need to be able to .SetUser(User)
and then loop and call Save. IE:
var savedThingies = importAccount.GetSaved();
foreach (var savedPost in savedThingies)
{
savedPost.SetReddit(exportReddit); // or SetUser
savedPost.Save();
}
I was thinking there had to be another way. Can I somehow get the URI from savedPost, load up a new VotableItem or something and then save?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Changing your instance user role
To change your user role: Open the Account menu to access the My Instance section. Click the Change User Role instance action. ·...
Read more >Feature request: Make it possible to change a username
I know it's technically difficult, but still it's very important for trans and non-binary people to be able to change their username.
Read more >Change the name of your macOS user account and home ...
You can change the name of your user account only while logged in to a different account, which must be an administrator account....
Read more >Considerations for Editing Users
Keep in mind that Salesforce Customer Support can't change usernames or deactivate users from an org. If you get a Duplicate Username error,...
Read more >Change User Information
Update User Profile · From the navigation header, select More > Admin. · Under Governance, select People. · In the list of instance...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just tested this with the following code and it seems to be working.
ohhh yeah that might work. So in that case you’d want to do a new “get post” on your import instance and then save the post. Alternatively I think you can actually just call the LogIn method again on your instance of Reddit to change the user like you were originally wanting to do now that I think about it more >.<