Skip to content

Commit

Permalink
Merge pull request #73 from jjideenschmiede/development
Browse files Browse the repository at this point in the history
fix: Update to new authenticate method & documentation.
  • Loading branch information
gowizzard authored Dec 1, 2023
2 parents 91e5a5a + 230ecbc commit b037440
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,8 @@ If an order is to be returned to the system, then this can be done as follows. P
// Define order body
body := AddOrderBody{
Action: "new",
PartnerId: "",
PartnerPass: "",
UserId: "",
PartnerToken: "",
UserToken: "",
ItemNo: "1",
KUsername: "WooCommerce",
KSalutation: "Herr",
Expand Down
10 changes: 4 additions & 6 deletions orders.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ import (
// AddOrderBody is to structure the order body data
type AddOrderBody struct {
Action string
PartnerId string
PartnerPass string
UserId string
PartnerToken string
UserToken string
ItemNo string
KUsername string
KSalutation string
Expand Down Expand Up @@ -148,9 +147,8 @@ func AddOrder(body AddOrderBody) (AddOrderReturn, error) {
parameter := parse.Query()

parameter.Add("Action", body.Action)
parameter.Add("Partnerid", body.PartnerId)
parameter.Add("PartnerPass", body.PartnerPass)
parameter.Add("UserID", body.UserId)
parameter.Add("PartnerToken", body.PartnerToken)
parameter.Add("UserToken", body.UserToken)
parameter.Add("PosAnz", body.ItemNo)
parameter.Add("Kbenutzername", body.KUsername)
parameter.Add("Kanrede", body.KSalutation)
Expand Down

0 comments on commit b037440

Please sign in to comment.