Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

lipa na mpesa daraja python

  import requests
  from requests.auth import HTTPBasicAuth
  
  consumer_key = "YOUR_APP_CONSUMER_KEY"
  consumer_secret = "YOUR_APP_CONSUMER_SECRET"
  api_URL = "https://sandbox.safaricom.co.ke/oauth/v1/generate?grant_type=client_credentials"
  
  r = requests.get(api_URL, auth=HTTPBasicAuth(consumer_key, consumer_secret))
  
  print (r.text)
  
Comment

PREVIOUS NEXT
Code Example
Python :: check if any entries arte none 
Python :: python x,y,z is d (20, 30, False) 
Python :: i=int(input("enter the number")); sum=0; pro=1; while(i0): d=1%10; if (d%2==0): sum=sum+d; else: pro=pro*d; i=i//10; print("sum=",sum,"product=",pro); 
Python :: how to subtract up everything in a list python 
Python :: download python 3.6 64 bit for windows 7 
Python :: python print statement 
Python :: Random Average 
Python :: pdf to excel python 
Python :: pie auto percentage in python 
Python :: https://practice.geeksforgeeks.org/problems/coin-change2448/1 
Python :: python class udp 
Python :: assign more than one variable at a time on a single line in python 
Python :: load data(review path) python 
Python :: the coding train 
Python :: save lines from a file 
Python :: what is fourier transform in python 
Python :: encanto meaning spanish 
Python :: django list view 
Python :: Python - Cara Mengurutkan String Secara alfabet 
Python :: Display the number of observations inside a Seaborn boxplot 
Python :: non preemptive priority scheduling in c# 
Python :: Loop per n (batch) 
Python :: numpy.where() for substring 
Python :: how to search over a notebook in python 
Python :: a.all() numpy 
Python :: label default text value python 
Python :: how to play mp3 file form pygame module 
Python :: how to remove no data times plotly 
Python :: pysftp get-r 
Python :: re mobile no validate python 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =