Closed 999eagle closed 1 month ago
Not sure how i feel about this build Ill test out the changes on my personal project i use this for and get back to you about this PR
Looks great to me I'll run some tests and figure out the changes and merge/release a new version
this pr first adds a builder pattern to
OpenShockAPI
soOpenShockAPI::new
doesn't need to have more optional arguments added and becomes unwieldy. the second commit then adds an option to configure the application name/version in the builder. this information is used in the user agent (if configured) similarly to what the official C# API bindings do. the application name is also passed ascustom_name
inpost_control
so the correct application name shows up the the logs on the OpenShock dashboard.the introduction of this builder pattern might be a bit too much? feel free to give feedback!