Skip to content

Latest commit

History

143 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Fireberry by Powerlink RestAPI

This is an up to date wrapper for the Powerlink.co.il REST API. we initially found working with the API to be a bit frustrating and hopefully this wrapper will make everything easy for you.

More information about the Powerlink REST API can be found at

https://support.powerlink.co.il/support/kb/%D7%94%D7%AA%D7%9E%D7%9E%D7%A9%D7%A7%D7%95%D7%99%D7%95%D7%AA/Rest_API

Please email support@fireberry.com if you find any bugs.

index

Authentication

To make a REST API call, you must include request headers including the Authorization header ==> Find your TOKENID

Create

URL:

https://api.powerlink.co.il/api/record/{ObjectType}

Method:

POST

Json exemple:

{"accountname" : "משה","telephone1" : "036339060","idnumber" : "1234","billingcity" : "תל אביב"}

More exemple in PHP | python | ASP.NET |

Update

URL:

https://api.powerlink.co.il/api/record/{ObjectType}/{id}

Method:

PUT

Json exemple:

{"accountname" : "משה","telephone1" : "036339060","idnumber" : "56789","billingcity" : "ירושלים"}

More exemple in PHP | python | ASP.NET |

Delete

URL:

https://api.powerlink.co.il/api/record/{ObjectType}/{id}

Method:

DELETE

More exemple in PHP | python | ASP.NET |

Query

URL:

https://api.powerlink.co.il/api/query

Method:

POST

Json exemple:

{"objecttype": 1,"page_size": 50,"page_number": 1,"fields": "accountname,idnumber,telephone1","query": "(idnumber = 12345678) AND (telephone1 = 036339060)","sort_by": "accountname","sort_type": "desc"}

More exemple in PHP | python | ASP.NET |

FieldDescriptionexemple
objecttypethe number of objectAccount=1, Contact=2,Cases=5 (See more..)
page_sizethe number of result per pageMin:1 Max:500
page_numberthe page of resultstart at: 1
fieldswhich fields to show on resultfor all field: *
querythe query you want search((idnumber = 1234) AND (idnumber = 5678))
sort_bySelect field to sort byaccountname/idnumber/telephone1
sort_typeSelect type to sortdesc/asc

Type of query:

OperatorDescriptionexemple
=find result equal"query": "(idnumber = 1234)"
!=find result not equal"query": "(idnumber != 1234)"
>Greater than"query": "(age1 > age2)"
<Less than"query": "(age1 < age2)"
<=Greater than or equal to"query": "(age1 <= age2)"
>=Less than or equal to"query": "(age1 >= age2)"
ORperforms a logical-OR of its bool operands"query": "((idnumber = 1234) OR (idnumber = 456789))"
ANDperforms a logical-AND of its bool"query": "((idnumber = 1234) AND (accountname = 'משה'))"
is-nulllook for NULL values"query": "(idnumber is-null 1234567)"
is-not-nulllook for not NULL values"query": "(idnumber is-not-null 1234567)"
start-withfind if the string start with the string"query": "(idnumber start-with 1234567)"
end-withfind if the string end with the string"query": "(idnumber end-with 1234567)"
not-start-withfind if the string not start with the string"query": "(idnumber not-start-with 1234567)"
not-end-withfind if the string not end with the string"query": "(idnumber not-end-with 1234567)"

You can combining the AND and OR Conditions

Note

  • AND & OR conditions allow you to test multiple conditions.
  • Don't forget the order of operation parentheses!

Go to your Powerlink account and let's start!

About

Powerlink CRM REST API

Resources

Stars

8 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages