How to create a plan programmatically? - braintree

Is there a way to create plans programmatically? It's a bit strange to read
To create a subscription, you only need a stored paymentMethodToken and a planId, which must be created via the Control Panel.
in the documentation. Why wouldn't there be a way to create a payment plan using the API?

Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
Currently there is no way to create a Plan programmatically.
Plans cannot be created, updated, or deleted via the API
Plans serve as templates for Subscriptions, which can be created through the Braintree API.

Related

Slack: how does one go about providing the 'box/dropbox/google' like integration?

Slack offers Box/DropBox/Google integrations, specifically the ability to add (pick via a dialog) a file to Slack from one of these offerings.
I have tried my best look up the different sort of integration possibilities but cannot find any documentation that I can leverage to build my own (to another product).
How does one go about providing a similar integration for his product?
The reason you do not find anything on how to create integrate products similar to Google Drive and Dropbox in the official API documentation is that those are custom solutions created in collaboration between Slack and vendors like Google. If you want something similar for your product I would advise you to contact the Slack business team for details.
However, there is one feature in the API that allows you to create some of the functionality:
Slack app unfurling: Automatically add custom attachments whenever a user posts a message which contains a URL to your product. Those can include preview images and text of your product.

Use Application Insights to view all REST API requests per user

We are developing a WebApi2 application. Users can use the REST API using their specific API key. I am investigating how to setup Application Insights to be able to see the usage of the REST API endpoints per user.
I have been experimenting with using telemetryclient.TrackPageview(endpoint-ID) and telemetryclient.TrackEvent(endpoint-ID), but I am not sure if this is the right way to go. And how should I pass the user-ID (API-key) in the tracking call? As telemetryclient.Context.User.Id? Or using properties or some other way? I would like to be able to use the user-ID to aggregate/segment the pageviews/events that were registered for that particular user. Any ideas are welcome!
I'd suggest using the built in properties, like context.user.id whenever possible, and then custom properties after that.
Currently in the portal, from the search view you can then find an item for any user, then use the "related items" to view "all telemetry for this user" to see all of the items.
Then can use the App Analytics portal to do queries (click the "analytics" button toolbar in the overview blade for your resource azure portal to go to the AA site for that resource), and that service lets you write much richer queries.
in those queries, it's easiest to group/filter on the "built in" properties, for custom properties you have to write a little bit more complicated queries to parse the values out of custom code.

Create New View for Google Analytics with Ruby

I was wondering how to create a new view for google analytics with ruby using the current 0.8.6 version of the library or otherwise? This would be after I have gotten the appropriate access token.
The specific call is here: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/profiles/insert
Any tips would be very much appreciated!
Write operations in the Management API (e.g. create, update, delete, patch) for Web Property, View (Profile), and Goal resources is currently available as a developer preview in limited beta. If you're interested in using these features, request access to the beta
It can take a while to get access it took me over a month you might want to start there first. While you are waiting I suggest you look at the normal ruby google analytics core reporting API examples once you are familiar with those you should be able to get the insert views working.

Uploading a personal google cloud server into app inventor

I was reading about creating a custom tinywebdb and wondered will it offer me more entries than the the normal tinywebdb.
I am creating an app using app inventor where users can comment and review about a specific product.
So I was wondering if I create my google cloud, will I be able to upload it into app inventor? If you guys have better advises please tell me!
The limit of 1000 entries is only valid for the default TinyWebDB component on the test service provided by App Inventor. For a custom TinyWebDB there is no such limit, see also Creating a Custom TinyWebDB Service.
You can read here more about quotas and pricing.
See also this guide for the setup and don't sign up for the free trial.
Generally, as already suggested in the forum, I would use a fusiontable instead, which offers better filter and query possibilities. Remember, in TinyWebDB you can only store tag/value pairs.

Possible to create yammer custom API's?

Creating a custom analytics dashboard for yammer and looking at all the ways I can get data. While browsing the web I came across this
https://community.office365.com/en-us/f/176/t/352016
'You can create an API to do this type of accomplish this type of functionality. You may join a 3rd party site https://stackoverflow.com/tour.'
Just wondering if anyone has done anything with creating an API?
You are misinterpreting the response. You can't create additional APIs. All supported APIs are documented on the Developer Site.

Resources