return URL handler for docusign connection returns 403 error - docusignapi

I'm working the DocuSign API and I have an issue while trying to receive an update on how many and which users signed on my internet form. I have created Handler with SSL certificate that supposed to get information on streaming mode. but, when I'm trying to make the connection I get "forbidden 403" error.
If anyone has already experienced such a problem I will be pleased to get some assistance here.
Thanks in advance.

Related

How to get my user id and posts from username on Instagram?

Due to recent changes on API Instagram, it is not possible to use the endpoint above:
https://www.instagram.com/{username}/?__a=1
I've tried with:
https://i.instagram.com/api/v1/users/web_profile_info/?username=username
However, it is not working correctly to fetch data. Please, could someone help to find a solution?
In advance, thank you very much.
The API endpoint https://i.instagram.com/api/v1/users/web_profile_info/?username=username does in fact work if the client has the X-IG-App-ID request header set. This header value can be obtained by inspecting the request sent via any web browser.
Try with this endpoint if your account is a business account.
https://graph.instagram.com/me/media?fields={id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,username}&access_token=""

Google Wallet app api / created passes lead to error

I was following the tutorial
https://codelabs.developers.google.com/add-to-wallet-web for building a generic pass over the api.
using https://github.com/google-pay/wallet-web-codelab as repo.
after some struggling with the 7 days test account (if someone gets 403 unauthorized requests check that you use the same iam email for the test account on the register page)
okay, all works well, i get the stored wallet object back but when i try to reach the URL
Test-URL with JWT there is always an undefined error coming back and I have no clue how to debug or check what is the problem.
anyone who could give hints on what is going wrong here?
thanks!

Trying to send a document through a trigger

I'm currently trying to automate the process of creating a docusign document and sending it by putting it into an apex trigger. I have managed to get the docusign api (via WSDL) into my org, and now I'm trying to add the code into the trigger to send out the document. Without pasting the entire code here, I've been following this tutorial and have gotten all of the required code into my trigger. Unfortunatly, when I run it, I get this error:
11:40:49.965 (12965647595)|FATAL_ERROR|System.VisualforceException: Getting content from within triggers is currently not supported.
Trigger.OpportunityTrigger: line 109, column 1
Does this mean that it's not possible to send a document in a trigger? The tutorial sends it through a controller, is that the only currently supported method?
Thank you for any help you can give me!
EDIT:
So I've gotten past that error (using a different tutorial), and am now getting this error.
System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: This User lacks sufficient permissions. User does not have the permision to the CreateEnvelopeFromTemplates method faultcode=soap:Client faultactor=https://demo.docusign.net/api/3.0/dsapi.asmx
This appears to be a problem with the Docusign user I am using for sending this document. I am currently using CreateEnvelopeFromTemplates to try and send a templated document out to up to 5 recipients.
I ended up phoning into Docusign Support, and asking them about the issue. Turns out that the last error was caused by me trying to authenticate and sign into docusign with my userID not the AccountID (switched those around and the permission error went away).
Another error showed up related to not having roles setup properly in my template (fixed that by setting up the role), and now everything is working fine. I'm answering my own question to leave it as a reference to future searchers.
Create a call out from trigger
Then get the request from a rest method
Then continue to get the pagereference conten
You can find an example here

"SMTP Error: Could not authenticate" in PHPMailer with Gmail

I know similiar question has been asked many times and I already read many of them.
Mine is different.
So I have a website that occasionary need to send email. I'm using PHPMailer with Gmail as SMTP. It's working great but after few days working, it will throw an error: "SMTP Error: Could not authenticate". To solve that, I need to do a manual login. Sometime with captcha. After few days, it will throw the same error.
What happening is Gmail block or temporary disable the account. How to solve this? Or should I use another SMTP (outlook.com ?)
Thank you!
Gmail used to add captcha to prevent bad request to your account .You can fix this issue by following these three simple steps
Disable Captcha Here's https://accounts.google.com/DisplayUnlockCaptcha
Create a strong password
Allow your gmail account for less secure app access Here's a link https://www.google.com/settings/security/lesssecureapp

Problem with Importing contact list from gmail contacts using php

I am trying to import the contact list from gmail using libgmailer.php but I am getting this error.
Fail to connect because: Gmail: Invalid request. (libgmailer: Gmail seems to have changed the URL again.)
Can anyone tell me what iam doing wrong.
thanks
Google has an API to get the information now. http://code.google.com/apis/contacts/ Trying to screen-scrape the data is, at best, obsolete.

Resources