File tree Expand file tree Collapse file tree 6 files changed +6
-18
lines changed
Expand file tree Collapse file tree 6 files changed +6
-18
lines changed Original file line number Diff line number Diff line change 11const https = require ( 'https' )
22
3- const use_cursor = true ;
4- const perPage = 50 ;
53const options = {
64 hostname : 'api.paystack.co' ,
75 port : 443 ,
8- path : `/transaction?use_cursor=${ use_cursor } &perPage=${ perPage } ` ,
6+ path : `/transaction?use_cursor=true &perPage=50 ` ,
97 method : 'GET' ,
108 headers : {
119 Authorization : 'Bearer YOUR_SECRET_KEY'
Original file line number Diff line number Diff line change 11<?php
2- $ use_cursor = true ;
3- $ perPage = 50 ;
42 $ curl = curl_init ();
53
64 curl_setopt_array ($ curl , array (
7- CURLOPT_URL => "https://api.paystack.co/transaction?use_cursor= $ use_cursor &perPage= $ perPage " ,
5+ CURLOPT_URL => "https://api.paystack.co/transaction?use_cursor=true &perPage=50 " ,
86 CURLOPT_RETURNTRANSFER => true ,
97 CURLOPT_ENCODING => "" ,
108 CURLOPT_MAXREDIRS => 10 ,
Original file line number Diff line number Diff line change 11#! /bin/sh
2- use_cursor=" true"
3- perPage=" 50"
4- url=" https://api.paystack.co/transaction?use_cursor=$use_cursor &perPage=$perPage "
2+ url=" https://api.paystack.co/transaction?use_cursor=true&perPage=50"
53authorization=" Authorization: Bearer YOUR_SECRET_KEY"
64
75curl " $url " -H " $authorization " -X GET
Original file line number Diff line number Diff line change 11const https = require ( 'https' )
22
3- const page = 1 ;
4- const perPage = 50 ;
53const options = {
64 hostname : 'api.paystack.co' ,
75 port : 443 ,
8- path : `/transaction?page=${ page } &perPage=${ perPage } ` ,
6+ path : `/transaction?page=1 &perPage=50 ` ,
97 method : 'GET' ,
108 headers : {
119 Authorization : 'Bearer SECRET_KEY'
Original file line number Diff line number Diff line change 11<?php
2- $ page = 1 ;
3- $ perPage = 50 ;
42 $ curl = curl_init ();
53
64 curl_setopt_array ($ curl , array (
7- CURLOPT_URL => "https://api.paystack.co/transaction?page= $ page &perPage= $ perPage " ,
5+ CURLOPT_URL => "https://api.paystack.co/transaction?page=1 &perPage=50 " ,
86 CURLOPT_RETURNTRANSFER => true ,
97 CURLOPT_ENCODING => "" ,
108 CURLOPT_MAXREDIRS => 10 ,
Original file line number Diff line number Diff line change 11#! /bin/sh
2- page=" 1"
3- perPage=" 50"
4- url=" https://api.paystack.co/transaction?page=$page &perPage=$perPage "
2+ url=" https://api.paystack.co/transaction?page=1&perPage=50"
53authorization=" Authorization: Bearer YOUR_SECRET_KEY"
64
75curl " $url " -H " $authorization " -X GET
You can’t perform that action at this time.
0 commit comments