Mobile R-Offer Fetch GitHub
Telecom
Ready-to-run Mobile R-Offer Fetch examples in
10 languages, open source on GitHub. Every one of them calls
POST /api/v1/mobile/r-offer
with a Bearer key and prints the parsed response. Each file runs as-is once you
set WAY2API_KEY — no SDK to install.
Mobile R-Offer Fetch API — Code Examples by Language
cURL
curl.txt
Command line. Works anywhere curl is installed.
Python
python.py
Python 3 with the requests library.
Node.js
node.js
Node.js 18+ built-in fetch. No dependencies.
PHP
php.php
PHP 8 with the cURL extension. No Composer packages.
Java
java.java
Java 11+ java.net.http. No dependencies.
C#
csharp.cs
.NET 6+ HttpClient and System.Text.Json.
Go
go.go
Go 1.18+ standard library only.
Ruby
ruby.rb
Ruby 2.6+ standard library (net/http).
Kotlin
kotlin.kt
Kotlin on JVM 11+. Android friendly.
Swift
swift.swift
Swift 5 URLSession. iOS and macOS.
Run it in one command
Download the example straight from GitHub and run it. Replace
your_key with the key from your dashboard.
curl -sO https://raw.githubusercontent.com/yoflic/way2api-examples/main/mobile-r-offer/python.py WAY2API_KEY=your_key python python.py
What’s in the repository
- Every live Way2API endpoint has its own folder, named the same as its documentation URL —
this API is
mobile-r-offer. - That folder carries all 10 language files plus a README documenting
mobile_number,operator, the success response and error handling. - The examples are generated from this documentation, so they stay in step with the parameters and responses on these pages.
- These are examples, not SDKs — nothing to install, nothing to keep updated. Copy a file into your project and adapt it.
Found a mistake or need a language that isn’t listed? Open an issue. Never post a real API key or personal data in one.