how to add new client to snapbill with its API - php

I have been trying to use the API of SnapBill from PHP. I am just trying to make a new client for every action of a form post.
The documentation of the SnapBill clients API did not help me.

I used this API recently and if you're new to REST (like me), the documentation doesn't really make any sense. The API is based on RESTful design so I used cURL library of PHP for sending and getting requests from the API.
This post http://www.lornajane.net/posts/2008/using-curl-and-php-to-talk-to-a-rest-service helped me a lot. Hope you get the idea.

Related

Google My Business Information API - Get locations list of the authenticated account with php library

I'm currently working with Google API through this great php library but it doesn't support the last API and most of his method are going to be deprecated.
I already developed the Google authentication.
I now need to get the list of the locations managed by the authenticated Google account.
I'm quite sure I need to call this api but I need to do it through the official PHP library.
Unfortunately there isn't any documentation of this PHP library so I tried different approach but I was never able to get them.
Here one of my attempt:
$client = new Google_Client();
$client->setAuthConfig($this->CLIENT_SECRET_PATH);
$client->addScope(self::GOOGLE_CLIENT_SCOPE);
$client->setAccessToken($this->gmb_access_token);
$this->gmb_client = new Google\Service\MyBusinessBusinessInformation($client);
$account_locations = $this->gmb_client->accounts_locations->getLocations;
But the response is empty.
Any help would be really appreciated.

get all RecordType fields from salesforce using REST API in PHP

I have used the below API for get all Case fields.
/services/data/v35.0/sobjects/Case/describe/
Here I got the RecordType option. I am able to get the RecordType information but I am not able to get the all fields in the particular RecordType. Could you please help me to get list of fields alone using REST API in PHP.
Thanks in Advance!
You need to use SOAP API, it's called Metadata API.
You also might have some luck with the new Lightning/UI API, which is REST. However, it's still in developer preview, so you'd need to contact Salesforce to get it enabled.
Also, have a look or submit the question to Salesforce's StackExchange page.

PayPal Chained Payment PHP

I'm looking at setting up a PayPal chained payment request but I'm struggling right at the start (doesn't look good) haha.
Basically I'm using these API docs: https://developer.paypal.com/webapps/developer/docs/classic/adaptive-payments/ht_ap-delayedChainedPayment-curl-etc/
I'm just wondering where I get the APi details from? With the .developer console you don't get the signature or at least I can't find it.
Can anyone give me any examples of this?
Thanks
You can use this link to easily obtain API user, pass, and signature.
You might also be interested in taking a look at my PHP class library for PayPal. It will make the API calls very simple for you.

PayPal API Website integration with or without CURL

PayPals documentation is quite confusing:
I need to integrate PayPal API into my website so the customer can pay for a final sum. And im using the sandbox for testing.
Now, technically, i found two different methods of integrating the API:
Without curl - using header('location', $urlwithvars)
With curl https://developer.paypal.com/docs/classic/express-checkout/gs_expresscheckout/
Now what confuses me - is curl only used because you can do a POST call to the paypal server? Because using the first option i also get directed to the paypal procedure and get the JSON response successfully on my notification url.
Im using following library: https://github.com/jersonandyworks/Paypal-Library-by-RomyBlack
Is that enough or should i use the complete curl process like here http://www.sanwebe.com/2012/07/paypal-expresscheckout-with-php
So basically the main question: DO i have to use curl process or is the header-location-url idea enough?
Thanks in advance
That library you're using is actually just using Payments Standard, not Express Checkout. That may be where part of your confusion comes from. This isn't even hitting the actual API's. Not sure if you care about that or not, but I personally prefer the full Express Checkout API as it provides a lot more options and freedom to integrate however you want.
I'd recommend you take a look at my PHP Class library for PayPal, which has all of the actual API's built in. I have a CodeIgniter specific version of it, too. It will do all the API work for you and you can integrate pretty much all of their calls within minutes.

php : How to send lead forms to salesforce.com api?

I am new to php and salesforce api. I have given an assignment in which I have to send the lead forms to salesforce api. My organization have a salesforce account but I have no idea how to implement salesforce api in php. Can anyone please help me on this??
Thanks
I would begin by reading over the documentation at http://wiki.developerforce.com/index.php/Integration and particularly the PHP information http://wiki.developerforce.com/index.php/Web_Services_API#PHP
If you are not already used to PHP this seems like it could be a big ask to pull off.

Categories