<?php $page_title="Api Urls";

include("includes/header.php");
include("includes/function.php");

$file_path = getBaseUrl().'api.php';
$ios_file_path = getBaseUrl().'ios_api.php';

?>
<div class="row">
      <div class="col-sm-12 col-xs-12">
	      	<?php
	      	if(isset($_SERVER['HTTP_REFERER']))
	      	{
	      		echo '<a href="'.$_SERVER['HTTP_REFERER'].'"><h4 class="pull-left" style="font-size: 20px;color: #e91e63"><i class="fa fa-arrow-left"></i> Back</h4></a>';
	      	}
	      	?>
     	 	<div class="card">
		        <div class="card-header">
		          Example API urls
		        </div>
       			    <div class="card-body no-padding">
         		
         			 <pre><code class="html">
                    <?php 
                      if(file_exists('api.php'))
                      {
                        echo '<br><b>Android API URL</b>&nbsp; '.$file_path;    
                      }
                      
                      if(file_exists('ios_api.php'))
                      {
                        echo '<br><b>iOS API URL</b>&nbsp; '.$ios_file_path;    
                      }
                    ?>
                    
                    <br><b>Home</b> (Method: get_home)(Parameter: user_id)
                    <br><b>Latest Recipe</b> (Method: get_latest)(Parameter: user_id)
                    <br><b>Popular Recipe</b> (Method: get_popular_recipe)(Parameter: user_id)
                    <br><b>Category List</b> (Method: cat_list)
                    <br><b>Home Banner List</b> (Method: get_home_banner)
                    <br><b>Sub Category list by Cat ID</b> (Method: get_sub_cat)(Parameter: cat_id)
                    <br><b>Recipe list by Sub Cat ID</b> (Method: get_recipe_by_sub_cat)(Parameter: sub_cat_id, user_id)
                    <br><b>Single Recipe</b> (Method: get_single_recipe)(Parameter: recipe_id, user_id)
                    <br><b>Search Recipe</b> (Method: get_search_recipe)(Parameter: search_text, user_id)
                    <br><b>Favourite/Unfavourite</b> (Method: add_favourite) (Parameters: post_id, user_id)</span>
                    <br><b>Get Favorite List</b> (Method: get_favourite_list) (Parameters: user_id)
                    <br><b>User Register</b>(Method: user_register) (Parameter: name, email, password, phone, auth_id, type(Normal, Google, Facebook, Apple))
                    <br><b>User Login</b>(Method: user_login) (Parameter: email, password, auth_id, type[Normal, Google, Facebook, Apple])
                    <br><b>User Profile</b>(Method: user_profile)(Parameter:user_id)
                    <br><b>User Profile Update</b>(Method: user_profile_update)(Parameter:user_id,name,email,password,phone)
                    <br><b>User Status Check</b>(Method: get_user_status)(Parameter:user_id)
                    <br><b>Forgot Password</b>(Method: forgot_pass)(Parameter:user_email)
                    <br><b>Rating</b>(Method: recipe_rate)(Parameter:device_id,recipe_id,user_id,rate,message)
                    <br><b>User's Rating List</b>(Method: get_user_rating)(Parameter: user_id,recipe_id)
                    <!-- <br><b>Delete User Account</b> (Method: delete_user_account)(Parameter: user_id) -->
                    <br><b>App Details</b>(Method: get_app_details)
                    </code></pre>
       		
       				</div>
          	</div>
        </div>
</div>
    <br/>
    <div class="clearfix"></div>
        
<?php include("includes/footer.php");?>       
