Is there a better way to retrieve information from a MySQL database without using PHP. I have been trying to use PHP for several days but have had no luck.
You can use an api that sends json formatted data. Then it is really easy to deal with that using Swift.
Related
I am working on to send emojis and memojis in ios chat application using mysql and nodejs. I did'nt find any documentation related to memojis. I am successfuly send emojis but memojis could'nt save into db.
Does any one know about what type of data is (memojis) ?
what is the best way to store this animated image in mysql?
what could be the approch to handle memojis using nodejs and mysql?
if any one can help it would be really grateful.
My school recently got a new grade book software, and personally, I don't like the layout. I decided that I wanted to program my own, but my only snag is that I don't know how to pull my grades from the website. All I would need are my percentages (ints) in each subject. Once I had them stored I would be able to do the rest. Is there a way to do this in swift?
Thanks so much!!
You can not get website data without API call. You need an API giving data either in JSON or XML, then you have to call that service using Alamofire and there are number of methods to store data like realm database, NSDefaults etc.
I am using http://datamine.mta.info/list-of-feeds api to get GTFS data for United States transportation.
When you call http://datamine.mta.info/mta_esi.php?key=<key>&feed_id=1 api you get one "gtfs" file which contains data that I need to parse in iOS so that I can display.
Once I get the file, how do I parse it? So far I haven't found a way to do so. Anyone can help me on this?
Thanks,
Pratik
The MTA requires that you serve the realtime data from your own server, so you might as well parse the Protocol Buffers server-side, and then make your data available to your iOS app from your server. If you do it that way, then you can use e.g., a Python or C++ library to parse the PB into JSON or whatever and structure it in an optimal way for your app for download.
Here is what I am trying to do:
I'm implementing a search function in python that would be used in this sort of fashion:
search(query)
I'm using a Django + TastyPie JSON api to link a PostgreSQL db to an iOS app. It's been easy (so far) to perform CRUD operations on my tables, but now I want to do something decidedly more complex.
What would be the best way to implement this? I want instant search, which I could do in-browser with backbone or the like. Something like google instant search.
I thought that I could, potentially, connect the function to a view at http://search.example.com/query, which would return some JSON aligned with the query 'query'. The problem is, doing this via http seems inefficient:
http://search.example.com/q
http://search.example.com/qu
http://search.example.com/que
http://search.example.com/quer
http://search.example.com/query
Thanks for the help!
I'd like to retrieve data from a web site ,which does not provide a API
Can I retrieve data using YQL?
ie: Can I custom the data parse in the target URI with YQL?
Yes, you can. This is one of the most popular use case of YQL. Here is a sample. But it is not working when trying to retrieve data from web-page which is dissallowed for spider access (via robots.txt, for example).
Without knowing what you're trying to do, the only reasonable answer here is…
Yes.