Skip to content

Commit

Permalink
Add three public functions:
Browse files Browse the repository at this point in the history
- getStartDate
- getExpiryDate
- getUserLimit
  • Loading branch information
Sebastian Buckpesch committed Feb 6, 2019
1 parent d6dd6e6 commit 67105c5
Show file tree
Hide file tree
Showing 5 changed files with 1,489 additions and 1,392 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,15 @@ Attach one of these parameters to the url to modify the PHP SDK behaviour
| getDevice() | Returns user device information | | array |
| getDeviceType() | Returns the device type of the current device mobile, tablet, desktop | | string |
| getEnvironment() | Returns if the app currently running on a website, facebook or direct website means the app is embedded via iframe to a website facebook means the app is embedded in a facebook page tab direct means the app is being accessed directly without iframe embed | | string |
| getExpirationDate() | Returns a Datetime object, containing the date, the app license expires | | DateTime |
| getFacebook() | Returns all available Facebook information, like currently used fanpage and canvas information. | | |
| getLang() | Returns the currently used Language as Language Code (e.g. de_DE, en_US, ...) | | string |
| getParams() | Returns all params submitted to the SmartLink before redirection | | array |
| getOperatingSystem() | Returns the operating system of the current user | | string |
| getStartDate() | Returns a Datetime object, containing the date, the app should be publicly accessible | | DateTime |
| getUrl() | Returns the SmartLink Url for Sharing | | string |
| getUrlLong() | Returns the SmartLink Url without Url Shortener | `bool` $shorten Shorten URL using smartl.ink | string |
| getUserLimit() | Returns the number of users exportable for an app | | int |
| renderSharePage ($debug = false) | Renders the complete HTML of the Share page including all meta tags and redirection. | `bool` $debug - Show debug information on the page? | string |
| setBaseUrl($base_url) | Sets a new base url for your sharing links (->getUrl()). | `string` $base_url New base url | void |
| setFilename($filename) | Sets the filename for the SmartLink (default: smartlink.php) | `string` $filename | void |
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"require": {
"ext-curl": "*",
"ext-gd": "*",
"leafo/scssphp": "^v0.7.5",
"leafo/scssphp": "^v0.7.7",
"mobiledetect/mobiledetectlib": "^2.8.12",
"mustache/mustache": "v2.8.0",
"oyejorge/less.php": "^1.7",
Expand Down
Loading

0 comments on commit 67105c5

Please sign in to comment.