My client would like a twitter feed that just shows her most recent tweet on her Shopify site. She needs it to be more customizable than the current standard widget provided by Twitter is.
There is a Shopify app that someone built for a monthly fee that does this, but I'd like to build it on my own.
I have already built a stand-alone solution with the Twitter API and twitterOAuth PHP library. Since I can't run the PHP on Shopify, I figured I need to build an app.
Just wanted to see if I'm on the right track or if there is a better way to do this. Thanks in advance.
If you can handle Twitter oAuth, then clearly you can handle Shopify oAuth. As per what we can barely call standards, it turns out using oAuth is pretty much the same between all these services. So Shopify oAuth is going to pose no trouble for you. Hence it is relatively easy for you to create an App in PHP in the cloud, that scrapes Twitter, and provides said scraped Tweet to Shopify.
Related
I just started using Shopify and it's APIs but I'm unable to complete my checkout process.
I'm using PHP as a backend and creating a react-native app. how can I achieve this?
I checked the Shopify-PHP-SDK, REST Admin API but didn't find anything helpful.
This is the first app that I've built using the Shopify API, so I'd appreciate any guidance that I can get. I looked into signing up with a partner application and using the OAuth authentication, but that seems like overkill for what I need to do since I don't want to use the Shopify storefront and I don't plan on offering my app in the Shopify App Store.
You must have missed this obvious choice.
https://help.shopify.com/en/api/storefront-api
Besides Storefront API, you can also use Ajax API. Unlike Storefront API, it doesn't require authentication.
I want to implement some of the twitter's client application's features in a web application, for example updating the timeline and searching for users etc. Now from what i found out by searching is, to do this in real time without refreshing a page or time delay, i would need to implement twitter's streaming API(user stream). I understand the twitter's REST API but unfortunately, i cant get the concept of streaming around my head. The documentation didn't help much either. For example about keeping a connection open and populate the page with real time tweets. I am planning to do this with PHP. Can anyone provide me an insight on how to go around doing it and what library to use?
Maybe you could try phirehose. Supports Streaming API and REST API as well. Check its Introduction page in the Wiki to understand how phirehose handles the Streaming API.
https://github.com/fennb/phirehose
I want to start developing a tool that runs daily via cron for getting daily analytical data from one channel, or video, etc.. through the "Youtube Analytics API". And not what is the best way to approach it.
I have read the documentation of Google and and I have several questions:
I created the project in the console (https://code.google.com/apis/console/) but I doubt what kind of application I have to choose when I create a Client ID (Web Application, Service Account or Installed aplplication).
What PHP library use?
It's a very new API and not much information.
In the Google GData site there is a warning about that "Most newer Google APIs Google Data APIs are not Google Data APIs." and in the google-api-php-client, no examples of this API.
What is the best method for authentication in a cron?
As you can see I am very confuse, can someone help me, please?
Thank you.
1) It will be an installed application unless you will run it in a web server.
2) Use the official library, add the ytanalytics php library. Samples: https://github.com/youtube/yt-samples-php
3) You can do so by getting a refresh token from OAuth2 Playground and setting it in your youtube object.
Here it explains a little more.
And a step by step video.
I have a shop project written with Zend Framework 2 and now I want to write an app for this project. I'm new to this whole Android thing (I wrote a few test apps, but no big project like this). So at this moment I'm planning the "app-project" but i didn't find that much till yet.
I have to write the API in PHP and the complete Android app, so I just wanted to ask if someone can show me some good tutorials/sites etc to get more information for this (there are some big topics I'd like to know like security with the JSON communication etc).
If you're building your API in PHP assess first which framework you want to use. I've had success using Yii to build a quick REST JSON API. After getting to grips with Yii this article explains in detail the process of building a REST API: http://www.yiiframework.com/wiki/175/how-to-create-a-rest-api/
You have a few choices in terms of authentication and securing your API. Firstly make sure all data is sent over https otherwise your efforts to secure your API are wasted because anyone listening on your network can read requests/responses in plaintext. Look at using OAuth or a HMAC pattern similar to Amazon web services for authenticating requests. Here's a great article on the latter: http://www.thebuzzmedia.com/designing-a-secure-rest-api-without-oauth-authentication/
I want to develop a bot which will update the status of a facebook account using php.
Please guide me on this
#Porkchop is correct, you will probably need the Facebook Connect API. To update a users status on Facebook, you should look at the Status.set API call.
For coding a googletalk bot in php there are some articles that should get you started:
Twitter PHP Jabber Bot Tutorial
Jabber Simple - A PHP library
But also consider using IMified, which does a lot of the work of creating and running chat bots for you.
If all you are interested in is a simple way to update your Facebook status from you Google Talk status, you probably don't need to go to all that work - just install the 'Google Talk Status Synchronizer' facebook application.
You could hire somebody to do it for cheap by outsourcing it, i mean thats what i do when i dont know code.
Since you are coding in PHP, I recommend using Jaxl (Jabber XMPP Library).
It supports bot authentication using X-FACEBOOK-PLATFORM and updating facebook status should be a one line task using the library. http://github.com/abhinavsingh/JAXL