aboutsummaryrefslogtreecommitdiffstats
path: root/timetask/http.go
AgeCommit message (Collapse)Author
2017-06-03buildSubmissionParams(): Support new `TimeEntry`; Submit single entryTeddy Wing
Change the function to use our new `TimeEntry` type, which doesn't demand asking for IDs as it already has them built in. Additionally, remove the loop here as we only want to submit a single time entry at a time. Add a new `Profile` type that holds onto the user's person_id. Forgot that existed. We'll have users fill that into their config.toml file.
2017-06-03http.go: Restore `SubmitTimeEntries` & `buildSubmissionParams`Teddy Wing
Uncomment these functions. Looks like they'll still be useful after all. Just need a little munging to fit them into the usage of submitting a single time entry and using our new `Project` and `TimeEntry` types.
2017-06-03Comment out all the things!Teddy Wing
Half get rid of a lot of code. I don't like and don't want to use our old field types. Get rid of them and the code in 'http.go' that depends on them. Also get rid of the time entry submission code in 'main.go' as that's going to be redone.
2017-03-12SubmitTimeEntries: Add required paramsTeddy Wing
These tell the Time Task form endpoint that we're submitting a multiple-time submission request.
2017-03-12http.go: Add `buildSubmissionParams` functionTeddy Wing
Function that takes a list of `TimeEntry`ies and builds the necessary URL params for submission to the Time Task form endpoint.
2017-03-11Get login workingTeddy Wing
Fill in the `Login` function to actually log in to Time Task. Pass credentials in via test command flags. Referenced https://gist.github.com/varver/f327ef9087ebf76aa4c4 for the cookie setup.
2017-03-11Initial commit. Test HTTP request.Teddy Wing
Make a sample GET request using `net/http`.