msgbartop
Gossimer’s Premier Web Hosting and Domain Registration Knowledgebase.
msgbarbottom

02 Sep 10 Website Speed Booster

The Website Speed Booster is a feature unique to Gossimer, and is available ONLY with the Linux Web Hosting Package. This tool automatically enhances the speed of your website by up to 20 times and more!

How does it work?

The Website Speed Booster works by compressing the content delivered to the client when it is sent across the Internet, making use of the browser’s ability to uncompress this data seamlessly. The tool does not require any changes in website code, nor does it require any additional software on the user’s end. All browsers starting from Internet Explorer 4.0, Netscape 4.06, Opera 5, Lynx 2.6 support this feature. Besides, this solution will simply not compress the data if the visitor has a non-compliant browser, so it presents no risk to your website at all. 

Using this tool from your Control Panel, you can boost the speed of all of the following:

  • All static pages i.e. html, js, css files etc
  • All dynamic pages i.e. php, perl, cgi, python files etc
  • All images and downloadable files, such as .gif, .jpg, .png, .doc, .pdf, .xls and so on.

 

Specifying Speed Booster settings

Follow the process mentioned below to specify your Website Speed Booster settings:

1. Login to your Control Panel and search for the domain name for which you have purchased this hosting package. Click here to read how >>

2. In the search results view, click on the domain name. This will take you to the order details view.

3. Click on Manage Web Hosting Service in the lower toolbar.

4. In the Website Management interface pop-up that follows, go to Manage Website -> Web Server Manager -> Website Speed Booster.

5. On this page, select Yes from the drop-down adjacent to the type of content you wish to optimize. You can choose to boost

  • Static Content
  • Dynamic Content
  • Images and other downloadable articles

    For disabling the feature, you need to select No from the drop-down.

6. Click on Submit.

IMPORTANT 

In order to complete the action, the Web Server needs to be restarted. Random restarts affect other services running on the Server. In order to avoid this, the Server has been scheduled to restart at intervals of 20 minutes. Hence, the change might take upto 20 minutes to be effective.

 

Tags: , , , , , , , , , , , , , , , , , , , , , , , , ,

29 Aug 10 Debugging Perl/CGI Scripts

Hosting servers are configured to store error logs for CGI/Perl scripts, encountered during the course of operation. By default, error messages are sent to STDERR.

Most HTTPD servers direct STDERR to the server’s error log, which stores information for all the websites hosted on a shared hosting environment. As this, this file cannot be accessed by individual website owners. You may wish to keep private error logs, distinct from the server’s error log, or  may wish to direct error messages to to a web browser.

This can be accomplished by coding your scripts accordingly during the development phase.

Sending error messages to a private log file

The carpout() function can be used to achieve this. Since carpout() is not exported by default, you must import it explicitly as -

use CGI::Carp qw(carpout);
 

The carpout() function requires one argument, which should be a reference to an open filehandle for writing errors. It should be called in a BEGIN block at the top of the CGI application so that compiler errors will be caught. Example:

BEGIN {
use CGI::Carp qw(carpout);
open(LOG, “>>/domains/domain.com/logs/cgi-error.log”) or
die(“Unable to open cgi-error.log: $!n”);
carpout(LOG);
}
 

carpout() does not handle file locking on the log for you at this point.

Sending error messages to a Web Browser

Fatal (die, confess) errors can be sent to a web browser by importing the special “fatalsToBrowser” subroutine:

use CGI::Carp qw(fatalsToBrowser);
die “Couldn’t open log file”;
 

Fatal errors will now be echoed to the browser as well as to the log file. CGI::Carp arranges to send a minimal HTTP header to the browser so that even errors that occur in the early compile phase will be seen. Nonfatal errors will still be directed to the log file only (unless redirected with carpout).

 

Sample Script

#!/usr/bin/perl -wT

# In the first line above, T causes Perl to check
# for “tainted” data, that is, data from outside the
# script (i.e. user input) that is going to be used
# to affect something else outside the script
# (i.e. writing to a log file)

# You can untaint data by parsing it for unwanted
# characters then saving it to another variable.

# If you are having trouble with a script, try removing
# the T switch to see if that is the problem.

# The w switch in the first line causes warnings about
# script syntax to be printed, if there are any.

# This script does 2 things:
#
#1. It directs fatal errors to the browser,
# so when the script is invoked via the Web,
# a meaningful error message is returned.
# This is useful when developing a script;
# but should be disabled when the script
# is made publicly available.
#
# 2. It will direct any error message the script
# generates to an error log that resides in
# the user’s home directory. The file must
# already exist and be “other” writeable.

# Notice that the following is enclosed in a BEGIN { }
# block that causes it to execute before the rest of
# the script is read.

# This block should be placed in the main script,
# as near the top as practical. Do not place it in
# subroutines or libraries. Always test
# subroutines thoroughly before placing them
# in libraries.

BEGIN {

# define an error log in YOUR home directory
# this is an example where the
# home directory is /domains/domain.com/

my $error_log = “/domains/domain.com/logs/cgi-error.log”;

# “my” in the line above makes the variable $error_log
# local so it only has meaning inside this block.
# See your text for more on variable scope.

# load the CGI::Carp module;
# fatalsToBrowser directs fatal errors to the browser
# carpout is for directing errors to the error log

use CGI::Carp qw(fatalsToBrowser carpout);

open (LOG,”>>$error_log”) ||
die “couldn’t open log file: $!”;
carpout(LOG);

# open(…) is used to open a file.
# >> means the new input will be appended what’s
# already in the file.

# LOG is a nickname (properly called a “file handle”)
# that is given to the file so it is easy to refer to
# it later, i.e. carpout(LOG) sends the error
# message to the file with the nickname LOG

# || means “or” (as in do this or that)
# die means stop executing the program. You can add
# a message in quotes after the die command.

# $! is a special variable that contains the current error info

}

# The following line will cause an error.
# It is a call to a sub-routine that does not exist.
# After you have tried this script and received the error message,
# comment out the following line so no error occurs
# and “Hello world!” is printed.

&non_existent_subroutine();

print <<EOT;
Content-type: text/htmlnn

<HTML>
<BODY>
Hello world!
EOT

print “</BODY></HTML>”;

Tags: , , , , , , , , , , , , , , , , , , ,

13 Aug 10 Change Log

Changes in version 3.10

  1. Java Docs updated
     

  2. Changes related to classes and methods:

    New Classes and Methods

    Domains Kit
    New Class Name New Method
    ThirdLevelDotUk String invoiceOption
    ThirdLevelDotUk String existingEndTime

    New Parameters introduced in Existing Methods

    Other Products Kit
    Class Name Method Name New Parameters
    EngageOrder renew String invoiceOption
    EngageOrder renew String existingEndTime

    Deprecated Parameters in Methods


    Domains Kit
    Class Name Method Name Deprecated Parameters
    ZoneOrder add "No Of Records" in DomainHash

    Deprecated Methods


    Domains Kit
    Class Name Deprecated Method Suggested Class Suggested Method
    DomContact addDefaultContact DomContact addDefaultContacts
    DomContact add DomContact addContact
    DomContact list DomContact listByType
    DomContactExt isValidRegistrantContact DomContactExt isValidContact
    DomOrder transferDomain DomOrder addTransferDomain
    DomOrder add DomOrder registerDomain
    ZoneOrder mod ZoneOrder Functionality not required anymore
    DotEu tradeDomain DotEu trade
    DotEu transferDomain DotEu transfer
    DotEu add DomOrder registerDomain
    Core Kit
    Class Name Deprecated Method Suggested Class Suggested Method
    Customer addCustomer Customer signUp
    Customer modDetails Customer mod
    Reseller addReseller Reseller signUp
    Reseller modDetails Reseller mod
    Reseller  addResellerWithStateId Reseller Functionality not required anymore
    OrderSetup getResellerSlabPercentageForProducts OrderSetup Functionality not required anymore
    OrderSetup getCustomerSlabPercentage OrderSetup Functionality not required anymore

 

Changes in version 3.9

  1. Java Docs updated
     
  2. Changes related to classes and methods:

    The following method in the Domains Kit is deprecated and its use should be discontinued -
     

    Deprecated method Class New method to be used
         
    isValidRegistrantContact DomContactExt isValidContact

 

Changes in version 3.8

  1. Java Docs updated
     

  2. Changes related to classes and methods:
     

    1. The following changes have been introduced under the DotEu class within the Domains Kit -
       

      • New methods
         
        • trade
        • transfer
           
      • Deprecated methods
         
        • tradeDomain
        • transferDomain

    2. The following new methods have been introduced under DigitalCertificateOrder class within the Other Products Kit -
       

      • enrollForThawteCertificate
      • reissue
      • renew
      • checkDigitalCertificateStatus
      • del
      • cancelDigicertOrder
      • changeDigicertPassword
      • addAdditionalLicenses
      • getDetails
      • getDetailsByDomain
      • getOrderIdByDomain

 

Changes in version 3.7

  1. Java Docs updated
     

  2. Changes related to classes and methods:

    Some old parameters have been removed and new parameters introduced in their place under the following methods  -

    LinuxHostingOrder Class
    Method Old Parameter New Parameters
    add Hashtable orderParams String packageKey*, boolean ssl#
    mod Hashtable orderParams String packagekey*, boolean ssl#,
    int excessBandwidth##
    getMonthlyCostAndValidate Hashtable orderParams String packageKey*, boolean ssl#,
    int execessBandwidth##
    getModPricing Hashtable orderParams String packageKey*, boolean ssl#,
    int execessBandwidth##

     

    WindowsHostingOrder Class
    Method Old Parameter New Parameters
    add Hashtable orderParams String packageKey*, boolean ssl#
    mod Hashtable orderParams String packagekey*, boolean ssl#,
    int excessBandwidth##
    getMonthlyCostAndValidate Hashtable orderParams String packageKey*, boolean ssl#,
    int execessBandwidth##
    getModPricing Hashtable orderParams String packageKey*, boolean ssl#,
    int execessBandwidth##

    MailHostingOrder Class
    Method Old Parameter New Parameters
    add Hashtable orderParams String packageKey*
    mod Hashtable orderHash String packagekey*, int additionalMailBoxes**
    getMonthlyCostAndValidate Hashtable orderParams String packageKey*, int additionalMailBoxes**
    getModPricing Hashtable orderParams String packageKey*, int additionalMailBoxes**

    SiteBuilder Class
    Method Old Parameter New Parameters
    mod Hashtable orderParams String packageKey*
    getMonthlyCostAndValidate Hashtable orderParams String packageKey*
    NOTE:

    * packageKey will be the Identifier Key of the Plan (plan1, plan2, plan3, plan4) for which the Order needs to be added/modified.

    # ssl will be true or false depending whether the user wants Dedicated IP / SSL for the Order placed.

    ## excessBandwidth is the Bandwidth which the user wants over and above the Bandwidth of the Order’s current plan.


    **
    additionalMailBoxes is the number of additional mail boxes over and above the existing ones in blocks of 100 accounts.

     

  3. The following classes and their methods are removed:
     
    • LinuxHostingPlanOnlyOrder
    • WindowsHostingPlanOnlyOrder
    • MailHostingPlanOnlyOrder
    •  

  4. The SiteBuilderLite class has been renamed to SiteBuilder.

     

  5. Two new methods, mod and signUp, have been introduced under the Reseller and Customer classes.
     
  6. Code for registerDomain method in PERL Domains Kit has been modified.
     
  7. The return type of the ListByType method of DomContact class in the Domains Kit has been changed to Hashtable from Vector.

 

Changes in version 3.6

  1. Java Docs updated
     

  2. Changes related to classes and methods:
     

    • New methods have been added in the Core Kit under the following class:

      getProductMetadata – Product class
       

    • New methods have been added in the Domains Kit under the following classes:

      getDefaultContactId – DomContactExt class
      listByType – DomContact class
      addTransferDomain – DomOrder class
      changePrivacyProtectionStatus – DomOrder class
      registerDomain – DomOrder class

       

    • Changes to the DomOrder class in Domains Kit:
       
      1. Privacy Protection Handling is added in the bulkAdd and bulkAddTransferDomain methods.
         
      2. The ‘ns’ parameter has been removed from the validateDomainTransferParams method.
         
    • The following methods in the Domains Kit are deprecated and their use should be discontinued:
      Deprecated method Class New method to be used
           
      add DomContact addContact
      addDefaultContact DomContact addDefaultContacts
      list DomContact listByType
      add DomOrder registerDomain
      transferDomain DomOrder addTransferDomain
      transferDomainWithoutValidation DomOrder addTransferDomain
      addTransferDomainWithoutvalidation DomOrder addTransferDomain
      add DotEu registerDomain in DomOrder class

       

      IMPORTANT

      While these methods are currently available, they are no longer supported and may be discontinued in the near future.

    • New methods have been added in the Hosting Kit under the following class:

      getHostingMetaData – WebHostingOrderData class
       

    • Changes to classes in the Hosting Kit:

      The invoiceOption parameter has been added to the add method of MailHostingPlanOnlyOrder, WindowsHostingPlanOnlyOrder and LinuxHostingPlanOnlyOrder classes

     

Changes in version 3.5

  1. Java Docs updated
     

  2. Changes related to classes and functions:
     

    • New functions have been added in the Core Kit under the following classes:

      getList – Country class
      getStateListForCountry – Country class
      getDetails – Order class
      addResellerWithStateId – Reseller class
       

    • An extra option called Supersite is added in the getDetails function of the Reseller class in the Core Kit.
       
    • A new class LegalAgreement is added with the following methods under the Core Kit:

      getRegistrantAgreement
      getProductCategory
      getAgreement
      getAllAgreements
       

    • A new function has been added in the Domains Kit under the following class:

      addCoopContact – DotCoopContact class
       

    • The following functions in the DomOrder class in the Domains Kit are changed to show the Invoice options also:

      validateDomainRegistrationParams
      validateDomainTransferParams
      addWithoutValidation

     

Changes in version 3.4

  1. Java Docs Updated
     

  2. New Classes introduced in all Kits:

  • Core Kit

    TaxService
        getApplicableTaxes
        getHashedTaxRules
     

  • Domains Kit

    DotEu
        getEUCountryList
        tradeDomain
        transferDomain
        add
        isEUCountry

    DotEuContact
        mod
        add
        addEuDefaultContact

    DomOrder
        validateDomainRegistrationParams
        validateDomainTransferParams
        addTransferDomainWithoutvalidation
        addWithoutValidation
     

  • Hosting Kit

    WindowsHostingPlanOnlyOrder
        getDetails
        getDetailsByDomain
        getOrderIdByDomain
        add
        mod
        renew
        del
        getMonthlyCostAndValidate
        getModPricing
        getDeletionRefundAmount

    LinuxHostingPlanOnlyOrder
        getDetails
        getDetailsByDomain
        getOrderIdByDomain
        add
        mod
        renew
        del
        getMonthlyCostAndValidate
        getModPricing
        getDeletionRefundAmount

    MailHostingPlanOnlyOrder
        getDetails
        getDetailsByDomain
        getOrderIdByDomain
        add
        mod
        renew
        del
        getMonthlyCostAndValidate
        getModPricing
        getDeletionRefundAmount
        list

    MailHostingSetup
        getHostingKeyDisplayName
        getHostingParamsDisplayName
        getPricingKeyPricingParamMap

    WindowsHostingSetup
        getHostingKeyDisplayName
        getHostingParamsDisplayName
        getPricingKeyPricingParamMap

    LinuxHostingSetup
        getHostingKeyDisplayName
        getHostingParamsDisplayName
        getPricingKeyPricingParamMap
     

  • Other Products Kit

    DigitalCertificateOrder
        add
        getCertPrice

    SiteBuilderSetup
        getPricingKeyPricingParamMap

    EngageSetup
        getPricingKeyPricingParamMap
     

Changes in version 3.3

  • 3 new functions have been added in the Core Kit under the following classes:

    authenticateCustomerId – Customer class
    login – Customer class
    getOrderIdByDomainAndProductCategory – Order class
     

  • Bug Fix – A minor Java Script problem was causing the frame links in the examples to not work in some browsers like Mozilla and Opera.
     

Changes in version 3.2.1

  • WSDL Endpoint changed
     

Changes in version 3.2

  • New methods added viz. Order.removeCustomerLock, Order.getLockList

Changes in version 3.1

  • Minor bugs in WSDL files fixed.


Version 3.0 Released

  • Extensive changes made. Please download the kit and read the appropriate Javadocs for details.


Changes in version 2.6

  • Added the method Customer.delete() which allows you to delete a Customer
     

  • Added the method DomOrder.cancelTransferRequest() which allows you to cancel the transfer-in request for a domain name
     

  • Added the method Order.sendRfa() which allows you to re/send the email asking for transfer-in approval for domain names.


Changes in version 2.5

  • Bug fix in Modify Customer Details and Modify Contact Details forms
     

  • More details in the Javadocs for DomOrder.getDetails()
     

  • Link to new Demo Server added.


Version 2.3

  • Perl API KIT added

Tags: , , ,

09 Aug 10 Procedure To Retrieve XML Sent And Received

While using one of the API kits, if you encounter any error that you need to report to Gossimer, you would need to provide the XML sent and received for the call you were making. Following is the procedure that you need to follow to retrieve the XML, for the various API kits we provide:

1. PHP kit: Set the debug value to true in the lib/config.php file

2. Perl kit: Set the $debugMode to 1 in /examples/cgi-bin/constants.cgi/font/index.html>

 

3. .NET kit: Set the static property Properties.Debug = True in statics.aspx

 

Having retrieved the XML sent & received, please contact us at  support@gossimer.com, along with the following details:

  • your Reseller Username
  • Service URL you were using
  • API kit Language

Tags: , , , ,

08 Aug 10 Fix File Permissions Manager

There are certain requirements to be met for the smooth functioning of your website such as

  • Certain files such as CGI and Perl scripts need to have a specific permission.
     
  • Similar permission needs to be set for the immediate parent directory containing these files.
     
  • Certain files/folders generated through scripts or power tools will have nobody as their owner and group. The primary FTP user and site group for your website needs to be the owner and group of such files/folders.

Gossimer Linux Hosting Control Panel provides a tool to fix permission issues with such files/folders.

Follow the process explained below to use this tool:

  1. Login to your Control Panel, search for the domain name for which you have purchased this Linux Web Hosting package and proceed to the Order Details view. Click here to know how >>
     
  2. Click Manage Web Hosting Service in the lower toolbar.
     
  3. In the Website Management interface pop-up that follows, go to Manage Website -> Additional Tools -> Fix CGI Permissions. This will open the Fix File Permission Manager view.
     
  4. Files/folders whose permission need to be fixed are listed here. Clicking Submit button will set the permission as listed against each file/directory displayed in this Fix File Permission Manager interface.

Tags: , , , , , , , , , , , , , , , , , , , , , ,

07 Aug 10 Perl API Kit and Integration Guide

Follow the instructions below to begin integration with the API using Perl -

Make sure you have read the General API Integration Instructions first. If you have already integrated the PERL API Kit at your end, read the Change Log first to know what has changed since.

Reference:

General API Integration Instructions >>
Change Log >>

 

Step 1. Download the API Kit
Click the link below to download the relevant API kits (updated on 6th March, 2008).

PERL_CoreKIT_v3_10.zip
PERL_DomainsKIT_v3_10.zip
PERL_HostingKIT_v3_10.zip
PERL_OtherProductsKIT_v3_10.zip
 

Step 2. Download the API Documentation
The complete documentation of all classes and methods available in the API can be found in the Docs below. The Docs below are javadocs, but the function names and explanations remain the same for all the platforms and the documentation is self explanatory. We recommend you download the docs and read through them completely once before you integrate your application (updated on 6th March, 2008).

Core_Docs_v3_10.zip
Domains_Docs_v3_10.zip (updated on 1st April, 2008)
Hosting_Docs_v3_10.zip
OtherProducts_Docs_v3_10.zip

Instructions to pass parameters to functions using the Perl Kit

Since Perl uses typeless variables you will have to ignore the datatypes presented in the docs. But for assigning values to variable of types other than strings and integers special care will have to be taken. Below is the list of datatypes presented in the API Doc and their usage in Perl.

Java Data

Types Assigning values in Perl

String

“firstname@secondname.com”

int

123

HashMap (Datatype for storing name-value pair)

{“domain1.com”=>1,”domain2.com”=>1}

Array and Vector (Datatype for storing more than one value)

["ns1.domain.com","ns2.domain.com"]

boolean (Datatype for storing true or false)

TRUE / FALSE

Example:

  • For Calling a Function which takes a String datatype and an integer datatype as its paramters

    public int function1(java.lang.String userName, int parentid)
    $result = $obj->function1(“firstname@secondname.com”,1);

  • For Calling a Function which takes a HashMap, a String Array and an integer Array as its parameters, where domainHash contains the domainname and the number of years as name value pairs.

    public java.util.HashMap function2(java.util.HashMap domainHash, java.lang.String[] orderby, int[] resellerId)
    $result = $obj->function2({“domain1.com”=>1,”domain2.com”=>2},["column1","column2"],[22,33])
     

  • For Calling a Function which takes a Vector and a boolean as its parameters

    public java.lang.String function3(java.util.Vector nameServers, boolean add)
    $result = $obj->function3(["ns1.domain.com","ns2.domain.com"],TRUE)

 

Step 3. Extract the files from the API Kit archive
You should get the following directory & files structure

cgi-bin/ – Pre-written examples. You can directly run these examples to test API functionality
lib/ – The Perl classfiles, library files and wsdl files that you need to run your application
 

Step 4. Run the examples
You can run the pre-written examples provided in the “examples” folder. Note the following steps to do so -

1. Upload the “examples” and “lib” folders to your web server where you run your Perl scripts. Make sure that both these folders are uploaded to the same parent folder.

2. You must have a recent version of Perl installed on the server.

IMPORTANT

Please do NOT use a version of SOAP-Lite newer than 0.60, which is the current stable release.

 

3. You must have a Demo account ready the first time. Read the General instructions if you have not yet setup your demo account. Reference: General API Integration Instructions >>

IMPORTANT

The Demo server duplicates all functionality of the live server, however all Domain Names will appear as available on the Demo Server. It does not query the live registry and therefore names which are not available on the live registry will still appear as available on the Demo Server. At times connectivity to the DEMO Registry may be down resulting in errors.

 

4. Make the appropriate changes to the “constants.cgi” file in the “cgi-bin” folder, by putting in the values for your “username”, “password” and “parentid”. The remaining settings have already been made for you in this file. You may only need to change the path for the “wsdl” folder if you have uploaded the wsdl folder elsewhere.

5. The URL to which the call is made is maintained in the “config.sh” file inside the “lib” folder. You can make changes to this file and redirect your calls to the appropriate server.

6. Import and point to note is that you will have to execute the config.sh file from the cgi-bin directory after making any changes in this file to reflect the changes.

7. Every Example file has a set of functions which you can run.

8. Once you have modified the appropriate example file, access it over your webserver by putting in your URL such as http://yourserver/examples/html and choose the required function from the links given in the left frame.

IMPORTANT

In registering/managing any domain name on the demo server always use ns1.onlyfordemo.net and ns2.onlyfordemo.net as your nameservers. ANY OTHER Nameserver will result in an INVALID NAMESERVER error.

 

 

Step 5. Understanding Errors
Make sure you have read the General API Integration Instructions to obtain links to the error format and possible error documents. Reference: General API Integration Instructions >>
 

Step 6. Writing your own code
After running each example above, if you simply refer to the corresponding .Perl file in the lib folder you will easily be able to figure out the code snippet you need to write in order to make a similar call.

Making an API call to perform any action is a matter of three steps:

(i) Include the appropriate Perl package as below

use lib::Customer;

(ii) Obtain a pointer to the required Class. This is done by using the code below

our $Customer = new Customer($debugMode);

(iii) Call the required method on this object. A complete reference of all methods is available in the Docs folder. This can be achieved by using the code below

$Customer->wsdlURL($wsdlFile);
$Customer->StartServices()
my @param = ($SERVICE_USERNAME, $SERVICE_PASSWORD, $SERVICE_ROLE, $SERVICE_LANGPREF, $SERVICE_PARENTID, $customerUserName, $customerPassword, $name, $company, $address1, $address2, $address3, $city, $state, $country, $zip, $telNoCc, $telNo, $altTelNoCc, $altTelNo, $faxNoCc, $faxNo, $customerLangPref);

IMPORTANT

You will notice above that EVERY method in the docs takes the same first 5 parameters as below

String SERVICE_USERNAME, String SERVICE_PASSWORD, String SERVICE_ROLE, String SERVICE_LANGPREF, int SERVICE_PARENTID

 

In the examples these parameters have been put into a single constants file from which they are accessed by including the constants file. These parameters are common no matter which method you call. These parameters mean the following

String SERVICE_USERNAME: Your Username
String 
SERVICE_PASSWORD: Your Password
String 
SERVICE_ROLE: This will always be a string "reseller"
String 
SERVICE_LANGPREF: The 2 letter code of the language in which you wish to receive errors and descriptions - "en" for English
int 
SERVICE_PARENTID: The ID of your parent which you can get from your profile section
 

Step 7. Change the information to Live information when you are ready
Once you have followed the steps above and got the test examples to work successfully, you can duplicate the same code in your live application and replace the Demo Server and Reseller account information with your live username and password. You will make this change in the “config.sh” file in the “lib” folder

 

Tags: , , , , ,