Archive for category API

Update Shipping info in Chargify

Today I went through really a big issue , I am trying to update shipping information in Chargify using its api.

Code written below is the code which I tried to update the shipping info

Read the rest of this entry »

No Comments

To change current status of linkedin from your own site.

Add this code in the function which you call from authentication(function)

Like::

function onLinkedInAuth()
{
IN.API.Profile(“me”).fields(“id”,”firstName”, “lastName”, “industry”, “numConnections”,”educations”,”location”,”headline”,”publicProfileUrl”).result(CurrentStatus);

}
function CurrentStatus(profiles) {
member = profiles.values[0];
document.getElementById(‘LinkedIn_Id’).value=member.id;

//This function updates the status
IN.API.Raw(“/people/~/current-status”) // Update (PUT) the status
.method(“PUT”)
.body(JSON.stringify(“linked in status update via api again”))

}

Deepak Sharma help me in finding this function.

1 Comment

Chargify API : Charge card using Basic authentication and Post Request

require “net/https”

require “uri”

data = Hash.new

data["charge"] = Hash.new

data["charge"]["amount"] = amount_to_charge

data["charge"]["memo"] = ‘This is the description of the one time charge.’

or

Read the rest of this entry »

1 Comment

LinkedIn Login

 

LinkedIn Page where you define your App and get an API key.

https://www.linkedin.com/secure/developer

Place where u need to have linkedin Login Button:

<script type=”in/Login”></script>

Javascript Used  for LinkedIn Login, where you define the linkedin App(for which you need to login) API Key, the function run on Onload event:

<script type=”text/javascript” src=”http://platform.linkedin.com/in.js”>
api_key: 5FfrZc4k8eeN96ARU1vB-sNogP89zUSsu6T_bMEHL5qUubivfrvj-mTVCvKvjajL
onLoad: onLinkedInLoad
authorize: true
</script>

Read the rest of this entry »

No Comments