Start a new topic
Solved

Custom API is broken (newPage, deletePage)

Hi,


I am using the SDK as shown here:

https://github.com/synergiclabs/pitchprint.sdk/blob/master/index.php


And trying to add a page to a PitchPrint instance:

designer.newPage(123, 456);


This gives the error in console:

f.broadcast is not a function


Looking at the (unfortunately obfuscated) source, it is clear that this will never work because it should be f.fire.


I have found a number of other "obvious" bugs, for example deletePage(0) doesn't work because it checks if the argument is "truthy". I have worked around a couple of these myself, but I would prefer if these could be patched "upstream". Any pointers in how to accomplish this?


We like the PitchPrint designer itself but the documentation for the custom integration is really poor. Apparently the documentation on the site does not work at all and all we have to go at is the aforementioned single index.php. Also I couldn't find what the latest version is, a changelog, a list of open/closed bugs, etc.


As soon as these issues are resolved, we will purchase a subscription.


Hi,

I'm  using also custom integration API.

I think this doc is the latest : http://dev.pitchprint.com/


If it could help you.

Hi Gerwin,


Thanks, as @Sylvian explain, kindly use the documentation on http://dev.pitchprint.com/

Hi Isaac,


Thank you for the link to the documentation. This helps.


Could you please give your thoughts on the other part of my comment:


I am using the SDK as shown here:

https://github.com/synergiclabs/pitchprint.sdk/blob/master/index.php


And trying to add a page to a PitchPrint instance:

designer.newPage(123, 456);


This gives the error in console:

f.broadcast is not a function


Looking at the (unfortunately obfuscated) source, it is clear that this will never work because it should be f.fire.


I have found a number of other "obvious" bugs, for example deletePage(0) doesn't work because it checks if the argument is "truthy". I have worked around a couple of these myself, but I would prefer if these could be patched "upstream". Any pointers in how to accomplish this?

Not sure why this was marked as solved as the actual questions have not been answered.


Any reply to my previous post would be greatly appreciated.

Login or Signup to post a comment