NAME
WebService::Hexonet::Connector::Util - utility package providing useful helper methods.
DESCRIPTION
This package represents a bundle of helper methods to are used by the WebService::Hexonet::Connector module and its submodules. Further more it provides methods that are useful when dealing with Backend API responses and showing outputs.
METHODS WebService::Hexonet::Connector::Util
timesql(sqldatetime)
-
Convert the SQL datetime to Unix-Timestamp
sqltime(timestamp)
-
Convert the Unix-Timestamp to a SQL datetime If no timestamp given, returns the current datetime
url_encode(string)
-
URL-encodes string This function is convenient when encoding a string to be used in a query part of a URL
url_decode(string)
-
Decodes URL-encoded string Decodes any %## encoding in the given string.
base64_encode(string)
-
Encodes data with MIME base64 This encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean, such as mail bodies.
base64_decode(string)
-
Decodes data encoded with MIME base64
command_encode(command)
-
Encode the command array in a command-string
response_to_hash(response)
-
Convert the response string as a hash
response_to_list_hash(response)
-
Convert the response string as a list hash
AUTHOR
Hexonet GmbH
LICENSE
MIT