diff --git a/Lib/Service/Api/FetchAPI.php b/Lib/Service/Api/FetchAPI.php
new file mode 100644
index 0000000000000000000000000000000000000000..fedf7ed5c69a6040a503877cf0bf828b38cc2717
--- /dev/null
+++ b/Lib/Service/Api/FetchAPI.php
@@ -0,0 +1,64 @@
+<?php
+ namespace Lib\Service\Api;
+
+use PDO;
+
+ class FetchAPI{
+ private string $host;
+
+ public function __construct(string $host)
+ {
+ $this->host = $host;
+ }
+
+ public function get(string $endpoint,array $param, array $headers){
+ $url = $this->host . $endpoint;
+ //add param
+ if(count($param)>0){
+ $url .= "?";
+ }
+ foreach($param as $key=>$value){
+ $url = $url . $key . "=" . $value . "&";
+ }
+ $ch = curl_init($url);
+ //set curl header
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt( $ch , CURLOPT_RETURNTRANSFER, true);
+ curl_setopt( $ch , CURLOPT_SSL_VERIFYPEER, false);
+ curl_setopt( $ch , CURLOPT_SSL_VERIFYHOST, false);
+ curl_setopt( $ch , CURLOPT_TIMEOUT, 10000);
+ //set http header
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
+
+ $output = curl_exec($ch);
+ curl_close($ch);
+
+ return $output;
+ }
+
+ public function post(string $endpoint,array $param, array $headers){
+ $url = $this->host . $endpoint;
+ //add param
+ $ch = curl_init($url);
+ //set curl header
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt( $ch , CURLOPT_RETURNTRANSFER, true);
+ curl_setopt( $ch , CURLOPT_SSL_VERIFYPEER, false);
+ curl_setopt( $ch , CURLOPT_SSL_VERIFYHOST, false);
+ curl_setopt( $ch , CURLOPT_TIMEOUT, 10000);
+ //set post payload
+ curl_setopt($ch, CURLOPT_POST, 1);
+ $post_payload = "";
+ foreach($param as $key=>$value){
+ $post_payload = $post_payload . $key . "=" . $value . "&";
+ }
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $post_payload);
+ //set http header
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
+
+ $output = curl_exec($ch);
+ curl_close($ch);
+
+ return $output;
+ }
+ }
\ No newline at end of file