Skip to content

Commit

Permalink
📝 update: sizes of campaign.go file
Browse files Browse the repository at this point in the history
  • Loading branch information
yothgewalt committed Sep 2, 2021
1 parent a238296 commit a7a78db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

**Of course, it's public. There is no encryption whatsoever, so developers can apply it to their websites.**

### ⚗️ functions/campaign.go (✅ 634 Bytes)
### ⚗️ functions/campaign.go (✅ 742 Bytes)
This is a file that sends data to Truewallet Gift Voucher service and it will callback back as Json.

```go
Expand All @@ -21,6 +21,7 @@ import (
)

func NewRequestCampaign(mobile_number, campaign_code string) (string, error) {
campaign_code := strings.Replace(campaign_link, "https://gift.truemoney.com/compaign?v=", "", -1)
campaign_url := "https://gift.truemoney.com/campaign/vouchers/" + campaign_code + "/redeem"
payload, _ := json.Marshal(map[string]string{"mobile": mobile_number})
reader_buffer := bytes.NewBuffer(payload)
Expand Down

0 comments on commit a7a78db

Please sign in to comment.