Skip to content

Conversation

@Miliviu
Copy link

@Miliviu Miliviu commented Jan 15, 2026

Spain doesn't have Deliveroo or Foodora, I'd love to use ordercli to track my orders whenever I order take out! So I thought adding Glovo support would be a great idea! Let me know if you have any issues with this PR and thanks for creating so many awesome stuff :)

Summary

  • Add Glovo provider client with authentication and API integration
  • Implement CLI commands for viewing Glovo orders, addresses, and coupons
  • Add configuration support for Glovo credentials

Changes

  • internal/glovo/client.go - Glovo API client with authentication
  • internal/glovo/models.go - Data models for Glovo responses
  • internal/glovo/errors.go - Error handling for Glovo API
  • internal/cli/glovo_cmd.go - CLI commands for Glovo operations
  • internal/cli/glovo_cmd_test.go - Unit tests for Glovo commands
  • internal/config/config.go - Configuration support for Glovo credentials

Test plan

  • Verify Glovo authentication flow works correctly
  • Test order listing and filtering functionality
  • Verify address and coupon retrieval commands
  • Run unit tests with go test ./internal/cli/...

Adds CLI commands for interacting with the Glovo API:
- config show/set: manage base URL, city/country codes, coordinates
- session/logout: authenticate via access token
- history: list past orders
- order: view single order details
- orders: show active orders with --watch mode
- cart: display shopping baskets
- me: show user profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant