authenticate user using docusign - php

I have 2 types of users in my system , lets say its A and B. A has an account with docusign and sends a document through email to B. B (who does not have an account on docusign) signs it using docusign. Now for making the api call (https://demo.docusign.net/restapi/v2/login_information), i need to specify the integrator key, email and password.
My question is how will i check whether a user has an docusign account or not and if he/she has an account, should i store the credentials of that user in the db or is there any way by which i can create a new docusign user automatically during the registration process?
Edit : i am using rest api with php

With DocuSign you only need an account to SEND documents, signing documents is always free and you do not need an account to sign.

Related

how to retrieve twitter user email using codebird.php

Is there a way I can request twitter user email address, avartarURL using codebird.php
Currently, I only get the screen name.
What I am doing is:
$reply = $this->client->oauth_requestToken(array('oauth_callback' => $this->clientCallback));
The tutorial I am currently following:
PartFour This will give you a sense of what is going on from the first 5 min.
You can request a user’s email address by calling the account/verify_credentials Twitter API method, setting the optional include_email parameter to 1:
$reply = $cb->account_verifyCredentials([
'include_email' => 1
]);
print_r($reply);
This will only work for Twitter apps that have the option to request email addresses from users enabled.
The “Request email addresses from users” checkbox is available under the app permissions on developer.twitter.com. Privacy Policy URL and Terms of Service URL fields must be completed in the app settings in order for email address access to function. If enabled, users will be informed via the oauth/authorize dialog that your app can access their email address.
Please note - Your app will need to regenerate the user access tokens for previously authenticated users to access their email address.
Please note - You can view and edit your existing Twitter apps via the Twitter app dashboard if you are logged into your Twitter account on developer.twitter.com.

Google account ID by account email

I'm writing an application for limited amount of users and logging to app is designed only via google accounts. Now I need to add functionality of adding permissions of accessing app based on email address. Problem is, on the database level, verification of permission to access app is based on Google ID. Since Google ID is more of less not a secret information, is there a way how to get Google ID of account based on email address, without actually logging in with this account?

Using Laravel Socialite to connect facebook and validating user permissions

Currently I am creating website that allow user login by their facebook. and the website require their email.
the problem is how to facebook authorization with require their email.
but when the user doesn't give their email permission, how to cancel the authorization process.
I know facebook docs tell me, that facebook was not guarantee we grab the user email. but how to cancel when the user does not allow their email in permission list
https://developers.facebook.com/docs/facebook-login/permissions/v2.3
email
Provides access to the person's primary email address via the email
property on the user object.
Do not spam users. Your use of email must comply with both Facebook
policies and with the CAN-SPAM Act.
Note, even if you request the email permission it is not guaranteed
you will get an email address. For example, if someone signed up for
Facebook with a phone number instead of an email address, the email
field may be empty.
Review Your app may use this permission without review from Facebook.
when user disable their email permissions picture :
[SOLVED]
I can using user revoking permissions.
see here :
Using Laravel Socialite to Manage User socials setting (like pinterest at user settings page)

Update Facebook Status via SMS application

We have a request from a client to update facebook status/comments through a text message.
Here is the scenario.
The SMS carries the fb Username,Password and the status/comments and this will goes to a SMS Gateway. Then the USername,Password and the status/comments come to our application and our application should facilitate to update the status and comments on the fb account.
Is there a method to authenticate the user through a SMS (Auth Dialog box) or is there any other method to update status/comments on fb through a sms. This is a PHP application.
Why don't you ask your user to create an account on your site and authorize your Facebook registered App to access his timeline? He would also register his phone number on your site and get a short numeric unique ID.
Then he can just send an SMS and when you detect a phone number or the numeric ID in a SMS, you post with the Facebook API which you are authorized for.
Sending Username and Password via SMS is not a great idea. A numeric ID of the phone number itself is much safer.
PS: I'm not using FBAPI but this is how it's supposed to work, from what I heard.
it is not possible to authenticate using username and password.
you should ask your users to create new application on their profile or authenticate first via your website in order to grant you an access.
after obtaining application_key and application_secret you can manipulate with user's account using these pairs.
please refer to facebook's developer zone to get more details on how fbapi works.

Google Account ID?

I am building an app on top of Google Reader. Since users have to enter their Google Account data, I'd like to use this data to assign personal settings to each user.
However, if I do so and a user would change his email adress or password(for the whole Google Account), I wouldn't be able to identify him anymore.
Thus, I need to know if there's a Google Account ID or something that I can use to identify users regardless of an email adress or password.
Thanks for your help!
If you use the Google Account API, you can connect the user to your app using OpenID or OAuth. Both methods return an account ID which stays static for that user.
More information: http://code.google.com/apis/accounts/

Categories