Further Market
  • Essentials

    • Foreword
    • What is FM Script ?
    • The philosophy and benefits of FmScript
    • What you will learn
  • Recall

    • Internet: who? what? What is that?
    • Further market and FMScript
    • The compiler
  • Download
  • Getting started

    • Installation
    • Create a business account
    • Connect to the PC application
    • Create your first applet
    • Create your first web applet
    • Compiler view
  • Basics

    • basic rules
    • Reserved keywords
    • The Syntax
    • Coding Style
    • comments
    • Variables, constants, and data types
    • Convertion of types
    • Conditions and loops
  • Functions

    • Create a Menu
    • Create input field (Input2)
    • Create a QR Code
    • Scan a QR Code
    • Strings functions
    • Array functions
    • Date Time functions
    • Mathematics functions
    • JSON functions
    • XML functions
    • Call Http request
    • Manipulate Sessions
    • Financial functions
    • Notifications
    • Bleutooth Printer
  • Demos

    • Advanced Inputs
    • Call http Request
    • loops and conditions
    • Menu inputs
    • Array items count
    • Simpe for
    • simple select count Sql Query
    • Date and Time picker form
    • Get credit balance
    • is valid city
    • user info from phone number
    • get country and city from form
    • simple ussd link switch
    • charge user credit
    • simple message box
    • user entry code
    • get users relations
    • my external payements collected
    • call google Map
    • in App direct publish
    • Geo location
    • Charts
    • menu with hints
    • call system Messenger
    • user start code
    • In call Gallery
    • credit card payment Request
    • MTN CMR Airtime Product Subscription
    • MenuItemAddContacts
    • AJax and FM Input
    • Input2
    • MenuItemAddRichMedias
    • MenuItemAddTagsItems2
    • BlinBlin Menu + javascript
    • GENERAL ALERT MESSAGE WITH JSON OPTIONS
    • Barcode
  • databases

    • CRM
    • External Payments
    • Bills
    • Sales
    • Games
    • Applets
    • Payments Gateway
    • Manipulate Select Queries
  • APIs

    • Further Markey Pay button integration
    • Mobile Money cash collector
    • Bill Api
    • API PUBLISH PRODUCT
    • Sale Api
    • SMS Api
  • Advanced

    • Actions scheduler
    • Events settings
  • USSD CAMEROON

API Consumer Functions

  • HTTP_GET2
  • HTTP_POST2

HTTP_GET2

Secured Param can be 0 for non secure link(http) or 1 for secure link(https).
The result of your request is returned in the following format:
                
{"Status":"True","Response":" YOUR END POINT RESULT."}
                
            
Status=True : means your endpoint has been executed successfully

NB 1:Do not set the value secured to 1 when calling an unsecured endpoint.
NB 2:During secure calls, reassure you the called server has a valid SSL certificate.

Signature
                
HTTP_GET2(Link : String, 
         Secured : Integer, 
         Headers, 
         CustomHeaders : String, 
         TimeOut : Integer); 
                
            
Demo
                
VAR Result : String;
VAR Link : String;

Link := 'http://217.16.4.142:82/Tracking/Position/Device?NameID='+CRM_CustomerCode;
Result := HTTP_GET2(Link,0);
Exit;
                
            
Demo With Custom Headers
                
ArrayItemAdd('CustomHeadersArrayName', 'Authorization: key=AIzaSyAqyws');

//--GET
Result := HTTP_GET2(Link, 0 ,'application/json:UTF-8:text/text', 'CustomHeadersArrayName', 500); 

                
            


HTTP_POST2

Secured Param can be 0 for non secure link(http) or 1 for secure link(https).
Headers values Exple: ContentType:CharSet:Accept.
The result of your request is returned in the following format:
                
{"Status":"True","Response":" YOUR END POINT RESULT."}
                
            

Status=True : means your endpoint has been executed successfully

NB 1:Do not set the value secured to 1 when calling an unsecured endpoint.
NB 2:During secure calls, reassure you the called server has a valid SSL certificate.

Signature
                
HTTP_POST2(Url : String, 
          Data : String, 
          Headers : String, 
          CustomHeaders : String, 
          Secured, 
          TimeOut : Integer); 
                
            
Demo
                
VAR Result   : String;
VAR Params : String;
VAR Link       : String;

Params := 'ProdID=0&'+
				  'StartDateTime=&'+
				  'StopDateTime=&'+
				  'MaxRecordID=0&'+
				  'MinRecordID=0&'+
				  'Type=2';

Link := 'http://api.furthermarket.com/FM/MARKET/Sales1?MyAccountID=4481642&Password=s';

Result := HTTP_POST2(Link, Params, 'application/x-www-form-urlencoded:utf-8', '', 0); // Headers=ContentType:CharSet:Accept

Exit;
                
            
Demo With Custom Headers
                
ArrayItemAdd('CustomHeadersArrayName', 'Authorization: key=AIzaSyAqyws');

//--GET
Result := HTTP_GET2(Url, 0 ,'application/json:UTF-8:text/text', 'CustomHeadersArrayName', 500); 

//--POST
Result := HTTP_POST2(Url, JSon, 'application/json:UTF-8:text/text', 'CustomHeadersArrayName', 1); 
                
            
XML functions
Manipulate sessions


Our Partners

Support
      Telephone : (+237) 675979899 / 676009100
      Email : fm_support@f-m.fm
      P.O Box : 774 BAFOUSSAM
Available On

no
no

Further Market Inc
Copyright © 2012-2021.