Sindbad~EG File Manager

Current Path : /proc/self/root/home/numerotech/st.numerotech.com/common_app/core_old/library/
Upload File :
Current File : //proc/self/root/home/numerotech/st.numerotech.com/common_app/core_old/library/ApiModel.py

from flask import request, url_for,flash, render_template,json
from core import app
from flask import url_for
from datetime import datetime, date, time, timedelta
import requests

class Apimodel:

	def Get_Faculty_data(self,searchdata):
		url = "https://live.aios-scientificcommittee.org/api/search_member?APIKey=w347H52d96&search="+searchdata
		print (url)
		response = requests.get(url)	
		data = response.json()
		return data
	
	def post_data(self,final_data):
	    url = "https://live.aios-scientificcommittee.org/api/attendance/post_attendance_workshop"
	    payload = json.dumps(final_data)
	    headers = {'Content-Type': 'application/json'}
	    response = requests.request("POST", url, headers=headers, data=payload)
	    return "success"

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists