[BB-API] BB-API Digest, Vol 4, Issue 1

David Simpson d.simpson11 at ntlworld.com
Tue Feb 12 14:41:23 GMT 2019


> It is possible. I came across this when I used the bb-api to import 
> peals into Campanophile and had to distinguish between new and update 
> performances.
> I cannot find the code but I think I used to refetch the peals that I 
> already had by their original id and check that the performance still 
> had the same id.
> If the performance has been updated you get the new id which I then 
> updated my original id with.  BB allocates a new ID every time the 
> performance is update and keeps a list of them.
> When you fetch a performance BB always gives you the latest ID.
>

> It seems unnecessarily complicated and inefficient (for both databases) to have to refetch all performances to check whether any have been amended.
> Also I can't see the latest id shown on a performance when doing a Get for an old id. Which query did you use? Is there a query that gives you the amendment history of a single performance?

> Graham

Again from memory, I used the bb.ringingworld.co.uk/export.php with fmt=xml  from= "StartDate"  to = EndDate

I think this gave me all the new and amended performances over the past "n"  days .
This is the only call that I used to BB

David




More information about the BB-API mailing list