Skip to content

Commit

Permalink
cleanup print
Browse files Browse the repository at this point in the history
  • Loading branch information
fauzi-as committed Mar 11, 2024
1 parent a5e14b7 commit 0e061ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions contentful.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ func (c *Contentful) newRequest(method, path string, query url.Values, body io.R
u.Path = u.Path + path
u.RawQuery = query.Encode()

fmt.Printf("QUERY %s\n",u.RawQuery)
fmt.Printf("X %s\n",u.String())

req, err := http.NewRequest(method, u.String(), body)
if err != nil {
return nil, err
Expand Down
7 changes: 1 addition & 6 deletions scheduled_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,12 @@ type ScheduledActions struct {
func (service *ScheduledActionsService) Get(spaceID string, entryID string, environmentID string) (*ScheduledActions, error) {
path := fmt.Sprintf("/spaces/%s/scheduled_actions", spaceID)

fmt.Println(path)
fmt.Println(service.c.BaseURL)

query := url.Values{}

query.Add("entity.sys.id", entryID)
query.Add("environment.sys.id", environmentID)
query.Add("sys.status[in]", "scheduled")

fmt.Println(query)

method := "GET"

req, err := service.c.newRequest(method, path, query, nil)
Expand All @@ -53,6 +48,6 @@ func (service *ScheduledActionsService) Get(spaceID string, entryID string, envi
for _, ct := range col.ToScheduledAction() {
fmt.Println(ct)
}

return &ScheduledActions{}, nil
}

0 comments on commit 0e061ae

Please sign in to comment.