I am using the PHP SDK. I created a user account under my admin account. I use "send on behalf of" to send envelopes from the user account. I am able to check the status of and download completed envelope documents and tab data with the master account, but I am unable to update the envelope notification settings from the master account.
The error I get is:
"errorCode": "USER_LACKS_PERMISSIONS",
"message": "This user lacks sufficient permissions to access this resource."
Am I unable to update the notification settings on behalf of another user through the API? Here is the relevant code snippet:
$envelopeApi = new DocuSign\eSign\Api\EnvelopesApi($apiClient);
$expirations = new DocuSign\eSign\Model\Expirations();
$expirations->setExpireAfter('120');
$expirations->setExpireEnabled('true');
$expirations->setExpireWarn('0');
$reminders = new DocuSign\eSign\Model\Reminders();
$reminders->setReminderDelay('5');
$reminders->setReminderEnabled('true');
$reminders->setReminderFrequency('5');
$envelope_notification_request = new DocuSign\eSign\Model\EnvelopeNotificationRequest();
$envelope_notification_request->setReminders($reminders);
$envelope_notification_request->setExpirations($expirations);
$envelope_notification_request->setUseAccountDefaults('true');
$envelopeApi->updateNotificationSettings($accountId, $id,
$envelope_notification_request);
This is when I get an error. I have tried using SendOnBehalfOf in the headers and without, with no change in results. Does anyone know if it is simply not possible to update the notification settings on behalf of another user with the API?
Thank you
OAuth JWT Grant is the recommended authentication technique instead of the old SOBO system. See https://github.com/docusign/eg-01-php-jwt for an example of how to do this.
That probably isn't the issue but can only help.
The best would be to set the notification parameters when you create the envelope.
Another possibility: when you try to set the notification parameters are you sure that the envelope is not complete?
Next idea: use the API Logging system to see exactly what was sent to DocuSign. Check it against the API reference page for that call as a check that the call is being made correctly.
Finally, I don't understand why you're requesting the account defaults and also trying to set the notification parameters. Wouldn't it be one or the other?
Related
So it seems like https://developer.paypal.com/docs/api/identity/v1/ only works if you're using Connect with Paypal API. This isn't an option at the moment. I have a Paypal widget within my dashboard and users can add multiple accounts. I need an email or name to help my users distinguish this account from their others. I tried using /userinfo but I only received the user_id property.
Is there something I can do differently to get email/name from this endpoint or is there somewhere else I can get this data? This workflow is best for users but if needed I can have them manually enter the info on my application
What ended up working for me was making sure all permissions per enabled and I added my return URL. I was doing this to setup connect with paypal button but then tried a postman request and realized I could now get all user info needed
recently tried to use Wechat authentication for my PHP web application but when i try to get auth token it gives me Error : {"errcode":50001,"errmsg":"user unauthorized hint: [_ue8GA0843e277]"}
I am calling https://api.wechat.com/cgi-bin/token?grant_type=client_credential&appid=wxa1dc8d55458d****&secret=39efd8a98ae56d4f70842527346a**** to get auth token
Errorcode : 50001 states - Unauthorized access.
This error will happen when the official wechat account is not verified. After verification only you will be able to get the access to the APIs.
You can easily check this, by accessing the wechat account. Under developer section click on Interface and permission. Here it will provide list of info related to wechat API whether it is "obtained" or "not obtained" under "status". Those that contain the status "Obtained" alone will work and rest wont work.
I've got a Drupal website and I'd like to send an email via Marketo whenever a new post is created. I've got the Drupal side of things covered (I know how to create the custom module that will be triggered whenever a new content us created).
What I don't know is whether:
1) Marketo API allows for this?
2) How? As when I was trying to follow this tutorial, I got stuck on the $clientId and $clientSecret as these values are now available under Integration/LauchPoint nor in Integration/Web Services
Thanks!
You should have an admin account or something. http://developers.marketo.com/documentation/rest/custom-service/
Here is how you can obtain your client id and secret
I've downloaded the PHP client library for Google Adwords API. I need to insert my login details in /src/Google/Api/Ads/AdWords/auth.ini. One of the variable is developerToken.
How can I get it?
Directly from the API...
Your assigned Developer Token will be activated once your application
for API access is approved. Your token will be available through your
AdWords API Center—accessible through the My Account menu for the MCC
account you applied with. You'll be able to access the API by
including it in your request headers when interacting with our system.
It is very important that you keep your Contact Email up to date—we
may send you important information regarding disruptions to service
and urgent changes via this channel.
https://developers.google.com/adwords/api/docs/signingup
I understand this might be old, but since Google updated their API, let me share my experience.
You need to create an MCC account (My Client Center), basically if you already have a Google Adwords account you cannot use it to generate developerToken however, you still can you use same Gmail account to create a new MCC account.
Follow below:
https://adwords.google.com/home/tools/manager-accounts/
Click on Start Now
Probably you are already logged in using your Gmail account, in all cases use your Gmail account in the email address field.
Choose name for your account let's say main-account
Do not click save and continue
Check below picture, you need to click, click here in the message below.
You will then redirect to the main dashboard, where you can click on Tools and then under SETUP tab you will find Adwords API Centre where you will be able to generate developerToken
you have to use the developer token from your live account. The token will work fine even if its status is pending
I'm trying to retrieve a specific subscriber from an AWeber list using the PHP SDK.
Code:
$subscribers = $account->loadFromUrl("/accounts/$account->id/lists/$list_id/subscribers");
var_dump($subscribers->find(array('email' => $email))); exit;
The problem is, I'm getting the following error:
WebServiceError: Method requires access to Subscriber information.
Google comes empty handed.
The error you're encountering is documented on the labs.aweber.com site.
You're getting that error because the findSubscriber method requires access to subscribers personal information (name, email, etc...) and your app has not requested access to subscribers personal information from the AWeber customer who authorized it.
AWeber API applications do not request access to subscribers personal data by default. You have to specifically check off that you want access to subscriber personal data before your application is authorized.
To correct this:
log into the labs.aweber.com site and request access to subscriber personal data
get a new access token for your app
use that new access token and you should be able to find by subscribers.
Please refer to the documentation links below
https://labs.aweber.com/docs/reference/1.0#subscribers (findSubscriber method)
https://labs.aweber.com/docs/permissions (permissions)
As always if you have any questions please log into the labs site, click support and someone from the API support team will be happy to assist you.