use some twitter api to make people follow some account - php

I have a task to make people follow some account on twitter as soon as they fill a form on our website.
Can I do this using the twitter php api? Or just a redirect or iframe would do the job?
Thanks!
Joe

just need to read the api a bit,
http://dev.twitter.com/doc/post/friendships/create

You can't have a Twitter user automatically follow another account until they give permission. You have to take them through OAuth authentication first, and then when they give you permission to modify their account you can add a follow. But automatically adding a follow without getting their explicit permission, meaning that you explain you are going to do this first, will get your account banned from Twitter. It is a serious violation of their terms of service.

Related

Is it possible to use intuit quickbooks online API without creating an app

I went through the Quickbooks online API documentation and it looks like I've to create an App in Developer Dashboard and then provide Terms and Conditions, privacy policy pages, Connect/ Disconnect URLs, etc. in order to to use it. I need to implement this feature for my own website and don't want to make it an App. Can't I simply make API calls from my website, without having to go through the hassle of creating an APP, go through verification process and all the details?
You have to make an app, yes.
You do not need to publish the app or make it available to anyone outside of yourself.
All an "app" is in this context is basically registering your email address with Intuit, so that you can get a set of OAuth keys to be able to authenticate. Nothing more. You can use dummy URLs for the privacy, terms and conditions, etc. URLs.
The "hassle" is as simple as just putting the a dummy URL in and registering your email address with Intuit so you can get credentials.

How to add an event to other person's Google Calendar with PHP API client?

I am working on a web application with a build-in agenda. I want to add the items that have been added in this build-in agenda, to the user's Google Agenda. But there is one thing I am wondering. How to get access to that user's Google Agenda?
I was able to get access to my own agenda by adding the XXXXXX#developer.gserviceaccount.com email to the list of addresses that have access to my agenda. But asking everyone to do this isn't really user friendly.
So does someone know the best way to request access to another person's agenda so I can add events through the Google PHP API client?
Thanks in advance!
Consider using Oauth tokens. See https://developers.google.com/accounts/docs/OAuth2
and https://developers.google.com/google-apps/calendar/auth

Aweber developer/labs API working

I just created an account on https://labs.aweber.com/apps in order to test Aweber service. I created an app there too.
First,I'm trying to create a list (listname) in my this developer account, I"m not sure how to add a list to it? and can see app id, is this list_id?
Second, I'm trying to access this developer account using my plugin. I have downloaded a PHP library from their labs and it contains demo.php. I have found Consumer Key & Consumer secret keys from labs, and changed them in my demo.php and when i run demo.php it always takes me to:
https://auth.aweber.com/1.0/oauth/authorize?oauth_token=Aqz6ePpjxPrZ0DePqi3LDBmZ
I'm not user which login to use?
Third, I'm trying to add a subscriber to a list. How can i get accessKey,accessSecret,$account_id for below script?
https://labs.aweber.com/docs/code_samples/subs/create
Aweber's labs documentation are very short, they are not such clear about these things. Please give me your suggestions if any body have used Aweber's labs account for testing. Thanks
You also need to have an Aweber account. The developer account just gives you the privileges to create an app and talk to their API.
You then need a regular Aweber account to add subscribers or gets lists.

Logging in to other wesites using Facebook Account

I am developing an advertisement site in PHP, the user can only list there products by logging in using there account in the site. Also i need to have another option for users to login into the website using there Facebook account and hence advertise about their products. How can i implement? Do i need to create any application instance in FB for this? I am looking forward for valuable suggestions.
Create an app.
Look into authentication, and see which method (server-side vs. client-side) fits you.
Once you've implemented that, you can make graph api calls. https://graph.facebook.com/me gives you the user's basic details
Good luck.

how to collect contacts from different accounts

so i was wondering this: for example: when you subscribe to Facebook you have the option to invite your friends from gmail(if you have a gmail account), so you would enter your gmail login and password and facebook would grab all your contacts from gmail, so i was wondering how this is done? is there an API from Gmail or from Hotmail that permits to program this?
thanks
These sites don't use an all-encompassing API, they take your login you provide and from their side login to Google (for example) as you and scrape it for your contact info.
This is why you should also be very careful about who you trust with that login information.
yes .There r different API's for all of these.you can download them by simply typing contact fetcher script in Google or something like this. They r free.
refer link https://sourceforge.net/projects/contactgrabber
There might not be an API specifically for it, but it's still pretty easy. I did something similar with PHP, using CURL to log in to a website and download reports automatically.
edit: You should be aware that some sites won't like that you do it, and might sue you for it. Always get a permission from the site owner before you try it.

Categories