Page 1 of 1

TMXInfoSearcher class

Posted: 12 Jul 2008 00:12
by Xymph
The new TMX Info Searcher class released with XAseco v1.01 is also available for download separately. This class works a bit differently than my InfoFetcher classes, because searching TMX can return a variable number of results. Therefore I built it as an Iterator class, meaning the object returned by instantiating the class with some search parameters can by looped over in a 'foreach' statement, which automatically causes each track "value" to be delivered as an TMXInfo object itself, allowing for easy use of all the track data.

Lots of fancy words :wink:, so perhaps the easiest way to understand how to use this class is a look at the simple driver script that's included in the download, from which this is excerpted:

Code: Select all

        $tmx = new TMXInfoSearcher($game, $name, $author, $env, $recent);
        // check for any results
        if ($tmx->valid()) {
                // display all results
                foreach ($tmx as $key => $value) {
                        echo "key: $key\n";
                        echo "value: ";
                        print_r($value);
                        echo "\n";
                }
        } else {
                echo "not found\n";
        }
Hope this is of use to other programmers. And the new ShareMania Info Fetcher class is also separately available.

Re: TMXInfoSearcher class

Posted: 17 Jul 2008 16:55
by soehest
Xymph wrote:The new TMX Info Searcher class released with
...
Hope this is of use to other programmers. And the new ShareMania Info Fetcher class is also separately available.
Great addition which i am sure someone will find great use for. I am working on something using this Searcher class so i will probably will you later :D

Regards

Re: TMXInfoSearcher class

Posted: 17 Jul 2008 21:41
by Xymph
soehest wrote:
Xymph wrote:The new TMX Info Searcher class released with
...
Hope this is of use to other programmers. And the new ShareMania Info Fetcher class is also separately available.
Great addition which i am sure someone will find great use for. I am working on something using this Searcher class so i will probably will you later :D
Thanks. So you will will me? Should I be afraid now? :o

Re: TMXInfoSearcher class

Posted: 18 Jul 2008 07:59
by soehest
Xymph wrote:
soehest wrote:
Xymph wrote:The new TMX Info Searcher class released with
...
Hope this is of use to other programmers. And the new ShareMania Info Fetcher class is also separately available.
Great addition which i am sure someone will find great use for. I am working on something using this Searcher class so i will probably will you later :D
Thanks. So you will will me? Should I be afraid now? :o
Haha, yes you really should be very afraid :-) To be will'ed is not a nice thing :roflol: Actually I wanted to type i would bug you later, but managed to get it to work. My first expierience with objects in php (not as kinky as it sounds) Now i only need to learn som html but that is beoynd the scope if this thread :-)

Re: TMXInfoSearcher class

Posted: 25 Jun 2009 08:54
by Xymph
I discovered that for the past year I misinterpreted one of the fields in one of TMX's API links. The necessary corrections to both the TMXInfoFetcher class (v1.12) and the TMXInfoSearcher class (v1.3) are now available in the usual place. Programmers using either or both classes are advised to upgrade.

Edit: for further updates to these classes, see this related thread.

Re: TMXInfoSearcher class

Posted: 25 Jul 2009 00:01
by Fleppie
Hi All!

Some news from the TMX front here :)
The old API will be replaced by a brand new one...with documentation ;)

We will offer 2 services:

- SOAP Webservice
- REST(ful) Webservice -> URL XML messages

These services are developed as we speak, and will be online after the summer :)

Re: TMXInfoSearcher class

Posted: 26 Jul 2009 19:07
by Scordo
Fleppie wrote:Hi All!

Some news from the TMX front here :)
The old API will be replaced by a brand new one...with documentation ;)

We will offer 2 services:

- SOAP Webservice
- REST(ful) Webservice -> URL XML messages

These services are developed as we speak, and will be online after the summer :)
As I can see TMX is implemented with ASP.Net. Is the API written using WCF? If so, did you split the WCF-API into a sepperate assembly, so you can provide the assembly to other .Net developers? TMSPS is implemented in .Net and I hate Web-References. An assembly containing the WCF-Contracts and so on would be nice :)

Thanks,
SCO