jzelinskie / geddit

golang reddit api wrapper
BSD 3-Clause "New" or "Revised" License
163 stars 58 forks source link

Implemented EditUserText api request. #38

Open maxchehab opened 6 years ago

maxchehab commented 6 years ago

I have implemented the /api/editusertext POST request.

To access this feature create an OAuthSession and...

submission, err := session.EditUserText(geddit.NewEdit("this is an edit", "t3_7pni8t"))

:smile:

jzelinskie commented 6 years ago

Genuine question here -- I've previously been avoiding passing around thing_ids as pure strings, but rather forcing users to query the API and then have an some kind of API object that implements a private method to get the ID (e.g. voter, deleter). Do people prefer this type safety or do you just want stringly typed access to the API?

maxchehab commented 6 years ago

I think that since the library is not complete it is best to give the user as much access to the raw input. As you start to finish the library these features can of course be depreciated.

Just my two cents. 😊