<?php
$accessToken = 'YOUR_ACCESS_TOKEN';
$url = 'https://api.zendit.io/v1/vouchers/offers?_limit=&_offset=&brand=&country=&subType=';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer ' . $accessToken,
    'Accept: application/json'
]);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
const accessToken = 'YOUR_ACCESS_TOKEN';
const url = 'https://api.zendit.io/v1/vouchers/offers?_limit=&_offset=&brand=&country=&subType=';

fetch(url, {
    method: 'GET',
    headers: {
        'Authorization': `Bearer ${accessToken}`,
        'Accept': 'application/json'
    }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

use strict;
use warnings;
use LWP::UserAgent;

my $access_token = 'YOUR_ACCESS_TOKEN';
my $url = 'https://api.zendit.io/v1/vouchers/offers?_limit=&_offset=&brand=&country=&subType=';

my $ua = LWP::UserAgent->new;
my $response = $ua->get($url,
    'Authorization' => "Bearer $access_token",
    'Accept'        => 'application/json'
);

print $response->decoded_content;
import requests

access_token = 'YOUR_ACCESS_TOKEN'
url = 'https://api.zendit.io/v1/vouchers/offers'

params = {
    '_limit': '',
    '_offset': '',
    'brand': '',
    'country': '',
    'subType': ''
}

headers = {
    'Authorization': f'Bearer {access_token}',
    'Accept': 'application/json'
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class ZenditAPI {
    public static void main(String[] args) throws Exception {
        String accessToken = "YOUR_ACCESS_TOKEN";
        String url = "https://api.zendit.io/v1/vouchers/offers?_limit=&_offset=&brand=&country=&subType=";

        HttpClient client = HttpClient.newHttpClient();
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .header("Authorization", "Bearer " + accessToken)
            .header("Accept", "application/json")
            .GET()
            .build();

        HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.body());
    }
}
curl -X GET\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.zendit.io/v1/vouchers/offers?_limit=&_offset=&brand=&country=&subType="
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        NSString *accessToken = @"YOUR_ACCESS_TOKEN";
        NSString *urlString = @"https://api.zendit.io/v1/vouchers/offers?_limit=&_offset=&brand=&country=&subType=";

        NSURL *url = [NSURL URLWithString:urlString];
        NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
        [request setHTTPMethod:@"GET"];
        [request setValue:[NSString stringWithFormat:@"Bearer %@", accessToken] forHTTPHeaderField:@"Authorization"];
        [request setValue:@"application/json" forHTTPHeaderField:@"Accept"];

        NSURLSession *session = [NSURLSession sharedSession];
        NSURLSessionDataTask *task = [session dataTaskWithRequest:request
            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                if (data) {
                    NSString *result = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
                    NSLog(@"%@", result);
                }
            }];
        [task resume];
        [[NSRunLoop mainRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:5]];
    }
    return 0;
}
using System;
using System.Net.Http;
using System.Threading.Tasks;

class ZenditAPI {
    static async Task Main(string[] args) {
        string accessToken = "YOUR_ACCESS_TOKEN";
        string url = "https://api.zendit.io/v1/vouchers/offers?_limit=&_offset=&brand=&country=&subType=";

        using HttpClient client = new HttpClient();
        client.DefaultRequestHeaders.Add("Authorization", $"Bearer {accessToken}");
        client.DefaultRequestHeaders.Add("Accept", "application/json");

        HttpResponseMessage response = await client.GetAsync(url);
        string content = await response.Content.ReadAsStringAsync();
        Console.WriteLine(content);
    }
}