Have you ever tried to code to get all the visitors from the cpane's latest visitor?
Is this possible?
A little poking around the CPanel API site showed that what your looking for is the listlastvisitors function in the ApiStats module (API2). From my memories of the CPanel API, it takes a lot of poking around through an amazing multitude of pages to get the API code to work in PHP, but if your up for a challenge, Here's the module, and information about calling the API functions is here. Poke around the XML API, and check out API2. Good luck, you will need it!
Related
At the moment i have a full implementation of google analytics in my web client.
Also i managed to track api calls in my backend php api.
But i was searching a lot about how to track more information than the api call.
I mean, i would like to know if there is any way to get information beyond the number of request as i can do with the js api.
Im specially interested in how to track the time the api takes to give the response as i can do for example with the time that the web client takes to get a response.
I tried searching in the ga documentation but i didnt find anything.
Maybe its something that is not supported, but if there is any way to achieve that i would like to know.
Please give some tips.
Thank you!
Ok, this isn't going to be the best quality question without a doubt. But I am looking for advice mostly on how to handle the next phase of an app I am developing. This is my first app in appmobi so things with it are a bit confusing to me still.
So generally speaking I am very used to working with PHP and sticking to browser based development. With that most of what I want to do with Facebook as far as the API's go for the graph I have done using the PHP FB-SDK. If your familiar with Appmobi then you know php is out well directly at least.
This app I am making, I have it working fine with everything else I am doing. I'm communicating with my server, people are logging in, people are registering, people are using the server for what its worth. But this Facebook bit has me stumpped. I want to offer facebook as a means of login/registration for my app, I want to post to facebook from my app pending a user approves it, and a handful of other things. But I dunno the best way to approach this through the app as its all static html based pages and javascript thus far.
So I am hoping someone will read through this all, and hopefully a handful of you that do, will know some means of doing what I want to do, Im not looking for someone to drop me a pile of code and give me the answer (nice as that would be). No I am just simply looking for what I should do to handle this between all the layers mentioned here to make this work. So I can start building this piece up.
Regarding Facebook, appMobi has recently added a Facebook object to the API you might use to be able to log into Facebook and access the Facebook Graph. You can find the Facebook API documentation here:
http://www.appmobi.com/documentation/jsAPI/facebook/index.html
There is a supporting document illustrating how to set up things on Facebook's side that can be found here:
http://www.appmobi.com/documentation/index.php?DOC=FACEBOOK_INTEGRATION
I'll do my best to post some sample code as well. I'm kind of working through the exact same thing.
I've been reading through the eBay Developer Network and for the life of me can't figure out how to do the simple task of retrieving all listings from an eBay User (me) via their API.
Can anyone help me out on achieving this.
Thanks a lot.
Edit:
I have tried using HTTP method of:
http://open.api.ebay.com/Shopping?callname=GetUser&appid=APPID&siteid=3&UserId=USERID
But this hasn't given me any luck.
Mainly with the PHP Methods, I've tried reading up on EBATNS but with no luck could I start coding to produce something small.
I have also looked at Use of eBay API in PHP to retrieve My eBay information and that didn't really help me all that much either.
If anyone needs the answer to this one I have figured it out after a day of research.
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsAdvanced&SECURITY-APPNAME=PRODUCTION-APPID&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&itemFilter(0).name=Seller&itemFilter(0).value(0)=USERNAME&paginationInput.entriesPerPage=10&keywords=
I've got a couple of affiliate sites and would like to bring together the earnings reports from several Amazon sites into one place, for easier viewing and analysis.
I get the impression that cURL can be used to get external webpage content, which I could then scrape to obtain the necessary info. However, I've hit a wall in trying to log in to the Associates reports using cURL.
Has anyone done this and do you have any advice?
I am working on an open-source project called PHP-OARA it's allows you to get your data from the different networks, it's part of the AffJet Project.
We have solved the problem with Amazon(it wasn't easy) and a PHP class is available to get your data from your associate account.If you like it you can even co-operate to do it better.
I hope it helps!
You can do this, but youll need to make use of cookies with curl: http://www.electrictoolbox.com/php-curl-cookies/ But id be willing to bet some cash that Amazon offers an API to get the data you want, although the last time i dealt with their web services it was a nightmare but proably because i was using the PHP SOAP extension and Amazon SOAP API.
I am losing my mind here.
Im looking at a beginners OAuth php package that has a 700 line file. Im used to using 10-12 lines of CURL or just a couple lines with simpleXML to get the same data. Is there a very meat and potatoes way to convey the concepts of interfacing with twitter via oauth without totally alienating someone?
Im used to learning by downloading an example, and tooling around with it. The only examples i can find are so confusing that id have to take a course to begin to understand the DEMO.
Specific Question:
I have a users access token. The api address is
http://twitter.com/statuses/friends_timeline.xml
How do i take the token, and mash it into the address and make that give me the data that i want? Im willing to learn, but i cant learn if i dont understand what is going on to begin with. I get the basics, you send a request, user approves, you get a token, i get that. I dont get how you make the requests with your token as authorization in place of the plain text user and pass.
Have you considered looking at one of the Twitter API PHP libraries listed on the Twitter API wiki?
I felt exactly the same, but then I found EpiTwitter which makes the whole process much, much easier. Checkout the authors blog for specific examples that actually work :)
I haven't tried this library, but someone posted a link to simple OAuth library few day ago here.