Braintree Hosted Fields Example - iframe

I am trying to get my head round the Hosted Fields framework of Braintree. It has been released just a few days ago and is still in beta.
I looked at the docs. I'm getting the overall idea but it would be nice to have some sort of small working example to start with. I found a github repo but the code does not seem to be working.
Google search did not deliver anything of value (just articles commenting on the idea). Can you point me to a working example (preferably one using rails) ?

I work at Braintree and was one of the developers on the Hosted Fields team. Glad to see so many people using it!
I made a GitHub repo that should answer your question. Basically, you have to set up Braintree on the server, create a client token, and then pass that client token to braintree.setup in the JavaScript.
The bulk of the Hosted Fields work happens in the "new transaction" view.
Hope this helps!

Related

API/Calendar ID integration in WordPress Using EventOn plugin

I work at a small high school and we use WordPress to run our school's website. We here at the school have little to no coding experience so we like to use plug-ins where ever possible to stream line creation. We use EventOn for Google Calendar Integration and what seems like a very simple process of enabling the correct API, creating an API key associated with Google Calendar and triple checking that my calendar ID is correct and in the right format we are still having issues with EventOn plug in fetching our Public Events Calendar. Any insights would be greatly appreciated. It should be noted that this system was working flawlessly up until a week ago and far as we can tell all requisite items are fully updated. I've even tried creating a new calendar as a test and used Google's publicly available Holiday calendar and we're still getting no fetching. Google has been no help. Please help.

Customising Mobius Forms

I'm really keen to use the 2sxc environment on my website for a number of applications.
I'm currently looking at the Mobius forms.
What I'm wanting to do is create a ticket in ConnectWise rather than send an email, using the ConnectWise REST API.
Some of these questions might have obvious answers to someone who has been taught in these technologies, but I'm self-taught. When I went to school I learnt COBOL!
There is c# code in the application, but I can't see how you build and incorporate into the application. I forked the code and it seems to just code with no build.
There are live and staging folders with the same cshtml files. However, it seems a bit random when the live or staging is actually used. For example, I did a quick fix to the _Contact Form.cshtml so to fix the type that meant it always displayed the ReCaptcha warning, and I changed the live version, which didn't do anything, so I had to change the staging version.
I need to update the settings so that configure the ConnectWise API settings, I haven't been able to find where I can do this? I am still looking though.
I also need to store a private key in the settings. Is there a secure way I can do this?
PS. When I get my head around all this I'm happy to be a contributor
welcome to StackOverflow.
I'll try to give you some guidance to help you figure it out
Live and staging are folders meant to let you make changes while the users see the unmodified output. So a host-user sees the files from staging, others see what's in live. When you're done and all is tested, you copy from staging to live. This we call Polymorphism.
Polymorphism applies to both the cshtml as well as the api. So as a host-user, you'll be using staging/api/FormController to save/send.
There is no build process, everything is hot-compiled. That's one of the things that makes 2sxc so amazing. No Visual Studio, DLL or restarting the application ;) You'll love it.
Secure keys: there is no special secure key storage. We usually put it in the App-Settings, just like the MailChimp key you'll see there. We split it into two fields for very technical reasons, because we publish our code on github and that causes trouble when our code has API keys. But you can just use one field, assuming you don't plan on publishing the code on github.

Check google play subscription with firebase function

I am using firebase functions and I am trying to find out if my users are subscribed to my app by using a firebase function. I wonder how the authentication should be done since I am trying to interface between two google services.
You asked this question a long time ago but since you haven't received an answer yet and for anyone else stumbling across this question:
I found this blog post giving a detailed description of how to do so.
It is basically straight forward, but the blog post guides you through it very well, I'm currently following it myself.
Disclaimer: I haven't published my app yet so I cannot verify if it works. If it doesn't, I will add an edit to this answer.

Posting graphite events to Hosted Graphite

I'm using Hosted Graphite and trying to add deploy events to my grafana dashboard. I first attempted to use the method described here.
The metric is added to graphite with a simple line at the end of the deploy script:
echo "$HOSTEDGRAPHITE_API_KEY.events.$ENVIRONMENT.api.deploy 1" \
| nc -uw0 carbon.hostedgraphite.com 2003
I can show those data points in a simple graph, but using the annotations feature with the "regular metric query" doesn't seem to be adding anything to the graphs.
I'm more interested in using real events, based on: http://obfuscurity.com/2014/01/Graphite-Tip-A-Better-Way-to-Store-Events. This should allow us to tag the event with, for example, the commit hash or git tag. Unfortunately, I can't find anything in the Hosted Graphite documentation about how to get these data into graphite. I also can't find anything about it in the graphite docs.
Despite the lack of docs, I tried posting to a few endpoints, just hoping to get lucky. All of these returned 404:
https://${HOSTEDGRAPHITE_API_KEY}#www.hostedgraphite.com/api/v1/events
https://${HOSTEDGRAPHITE_API_KEY}#www.hostedgraphite.com/api/v1/sink/events
https://${HOSTEDGRAPHITE_API_KEY}#www.hostedgraphite.com/XXXXXX/graphite/events
where XXXXXX is the path prefix I have when accessing the graphite dashboard at /XXXXXX/graphite/dashboard.
I also tried contacting Hosted Graphite support but the "Support" link seems to go nowhere.
Hosted Graphite employee here.
UPDATE: We support Graphite Events and Annotations now: http://docs.hostedgraphite.com/advanced/annotations-and-events.html
We don't currently support events, but it is in development.
This is the reason there is no mention of this functionality in our documentation.
We do support annotations based on metrics.
Which support link didn't work for you? I'll get that fixed :)
You can email us at support+so# or on twitter, as you already discovered.
I'm sorry I don't have a better solution to tagging deploys right now ( it's something we want to be able to do too) but it should be available soon.
Please get in touch via email if there's anything else we can help with.
e
EDIT: We're using Intercom for support, do you have something like noscript/disconnect that might stop that from working?

Is it possible to build an application for the LinkedIn platform?

Do you know if it's possible to build an application for the LinkedIn platform?
Yes, they have API at http://developer.linkedin.com/index.jspa, allowing access to the profile, connections, messaging and more.
While LinkedIn has promised a public API for a very long time now, they have yet to deliver.
No, there is no public LinkedIn API yet.
IMO, their widgets (which there are only two of at the moment, which are very limited) don't count.
They say that they are open to being contacted with specific uses for their API and they may give access to parts as needed - but that is if they accept your ideas for integration. They have been very picky with this - and have not accepted my attempts to integrate with LinkedIn yet, they tell me I have to wait with everyone else, apparently my applications are not "high-profile" enough.
Sure, you'll find many Google results talking about their "promised" API, but they are empty promises and won't be of much help.
Yes, Linkedin has an API:
http://www.programmableweb.com/api/linkedin
http://blog.linkedin.com/blog/2007/12/the-intelligent.html
So you could build an application that uses it.
Update: (from second link)
We’ll be phasing all of this in over the coming months and to get involved with the Intelligent Application Platform either for APIs, widgets, or hosted applications, send us an e-mail to developers#linkedin.com telling us what you want to build and what you need to build it.
Since there are published Mashups using LinkedIn I would assume that means you can use the API even if the documentation isn't readily available.
As a tip, in the future include links to what you found that didn't work, so we know not to give it to you again.
I poked around a bit more and I found some more on their widgets which appears to be the main focus of their API.

Resources