Hallo,
i want to write a wrapper for an API and i thinked over to use a Class for it to have the possibilities of properties and getters/setters... But i´m not sure whether it is possible with a class so i have some simple questions...
1. To save/restore data i want to use keyvaluestore inside this Class. Is that possible?
2. To update/retrieve data from API-Server i need to use for example erels multipartpost (uses httpclient) and i have to; get a call of a sub. Doing thing i have to do with multipartpost or even httputils2.
Can i use multipartpost (httpclient) and httputils inside a class?
3. In addition to 2. How would a typical structure (subs and so on) looks like? I need to give back the caller a result. I thought over to call a done-sub or something after i communicate with the apiserver...
Any hints or simple class-examples are appreciated ;-)
i want to write a wrapper for an API and i thinked over to use a Class for it to have the possibilities of properties and getters/setters... But i´m not sure whether it is possible with a class so i have some simple questions...
1. To save/restore data i want to use keyvaluestore inside this Class. Is that possible?
2. To update/retrieve data from API-Server i need to use for example erels multipartpost (uses httpclient) and i have to; get a call of a sub. Doing thing i have to do with multipartpost or even httputils2.
Can i use multipartpost (httpclient) and httputils inside a class?
3. In addition to 2. How would a typical structure (subs and so on) looks like? I need to give back the caller a result. I thought over to call a done-sub or something after i communicate with the apiserver...
Any hints or simple class-examples are appreciated ;-)