Aweber developer/labs API working - php

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.

Related

One stripe account with multiple webhooks for different services

I have already integrated Stripe payments into one of my websites, and all is working great (and I'm using a unique webhook for this website).
I have just created an entirely different service through another website of mine, and am in the process of integrating Stripe on that website too.
However I have one problem, as far as I can see, I have to use the same webhook for both of my services. This won't work tho!! I really need separate webhooks for each service... is this possible?
PS: I read on Stripe's docs that every event will be sent to every webhook in the list (https://dashboard.stripe.com/account/webhooks).
Please somebody shed some light!
This was such a tidy fix.
Simply log in to your Stripe dashboard, and in the top right click you account name and then click 'Create New Account'.
Props to Matthew for the answer which also matches Stripe's docs
You must use separate Stripe accounts for projects, websites, or businesses that operate independently from one another.
Log in to your Stripe Dashboard and there is a drop down option that shows your current account name on the top left hand side. Select it and add new account.

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

Salesforce REST Api missing fields with PHP

I'm using the Salesforce REST API and found it very hard to find decent documentation.
I can successfully log in with OAuth and i can push new accounts to Salesforce.
I use the instance url to make the API calls and i send the following fields to create an account object:
Name
Rating
Description
The problem is that I created a free trial (which sits on na9.salesforce.com) and everything worked fine.
I created a second free trial to check if everything works with another account, but the rating field is not available... I get the following message from Salesforce:
"[{"message":"No such column 'rating' on sobject of Account"}]"
Why is that?
Also, is it possible to add notes to a created account using POST? And is it possible to create Leads instead of Accounts using the API?
Thanks in advance,
A feature called field level security (FLS) can mean that even standard fields are not accessible, check the FLS settings on account in your second org.
Docs for the REST API are on the developer force site

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.

use some twitter api to make people follow some account

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.

Categories