Audience
This document is designed for people that are already familiar with the concept of System Codes and Dynamic Parameters.
What are Programmable Codes?
Hello, World!
Available Objects
Currently, there are 3 objects available:
The redir object contains the following properties:
rangeID | long | The Id of the Code Series |
encryptionKey | string | The Encryption Key |
offsetString | string | The code number of the code series |
lastSalt | long | The current salt value |
userID | long | The anonymous user id |
deviceName | string | The name of the device |
screenWidth | int | The with of the screen |
IPLatitude | double | The latitude based on IP |
IPLongitude | double | The longitude based on IP |
IPCountryCode | string | The two-letter country code |
IPCity | string | The name of the city |
The click object contains properties
platformID | int |
The Id of the devices platform:
0 = Unknown
1 = Symbian S60 3rd
2 = Symbian S60 2nd
3 = Symbian UIQ3
4 = Symbian UIQ2
5 = J2me
6 = J2me generic
7 = Windows Mobile 5,6,6.5
8 = Palm OS 5.x
9 = Windows Desktop Reader
10 = iPhone
11 = Blackberry Non-Touch
12 = Android
13 = J2me full signed
14 = Symbian S60 5th
15 = Blackberry Touch
16 = Samsung Bada
17 = Windows Phone 7, 7.5
18 = Blackberry OS7
|
userAgent | string | The user agent of the device |
language | string | The users' language |
ip | string | The devices IP |
To access the property userAgent for instance you write click.userAgent
The f object is a special object that
BiAdd(BigInteger a, BigInteger b) | BigInteger | Adds two BigIntegers. |
BiSub(BigInteger a, BigInteger b) | BigInteger | Subtracts two BigIntegers. |
Now() | DateTime | Returns the .net DateTime object (UTC). |
Bi(string value) | BigInteger | Creates a BigInteger from a string. |
Prop(string name) | string |
Used to access Redirect Data. In case of Code Series the Redirect Data of the field name of the currently scanned code is returned. Returns NULL if no Redirect Data is found. |
Ue(string value) | string | URL-encodes a string. |
How to create Programmable Codes
Creating a Programmable Code is simple - once you have the Python Expression in place. Just follow these steps:
That’s it.
If you want to use your own Python Expression follow the steps above. Test your own expression and once you are happy with it, click the Sign for Production button, instead of the “Sign for Testing” button. But careful, this will deduct 30,000 BeeTagg Credits from your Team.
Examples that you can use as templates
Result:
Result:
Result:
It the code 24655 of the Code Series is scanned the following URL is called:
http://mysite.com/order.php?productid=34655
and the article with the ID 34655 is displayed.
Cost
FAQ