I just want to request my viewCount, subscriberCount and videoCount. All these three things are listed when I open this url in my browser.
I am working with JavaScript. All I want to do now is save this three variables and display them on my website. No authentication is needed.
I tried a lot of code examples but it never worked. I have no idea how this works. Please help me!
if you look in the reason of the invalid request it tells you that a key is needed.
In fact, as almost all the google API services nowadays, you need to register your application and get an API key that will replace the value of the parameter key in your url (Now it is set as a demonstration as key=MY_API_KEY).
Here is the link for the guide to app google registration.
Hope this answer can be useful to you.
Related
There's a feature on smartphones where you can send someone a "pin" of where you're at or another location. This can be on Google Maps, Apple Maps, etc..
On the messaging side..this shows up as a 'preview' of the pin that's clickable and will then launch the respective maps app.
How can I send said "pin" through Twilio?
I noticed the format of these pin urls looks like
https://maps.app.goo.gl/9s8sdsiuGPitgT6?g_st=ic
Note the maps.app part. I thought this is what would make the preview work.
I tried that with Twilio and it just results in sending over a hyperlink. (Opening up the hyperlink does usually open up the respective app on the phone. That's fine..but I'm really tryna get the preview to show up too)
Is this even possible with Twilio? Is this something I'd need to use the MMS API for?
Note: I'm using a Twilio Serverless function with JS to achieve this.
Thanks!
I have an app built on Twilio and send URLs frequently. To my understanding - the link preview feature is dependent on the device receiving the message. Here is an overview from Twilio that explains how link previews work.
As an alternative - you might check out what3words as an option for sending location info. We needed to send very specific meeting locations to people and this helped. Sending a general address was never specific enough - and this let you save a very specific location and share it with others.
Hope this helps!
I'm using Outlook Web Add-in. I need a way to send an email automatically. Something similar to this:
var item = Office.context.mailbox.item;
item.displayReplyAllForm("Default Message");
but without showing the Reply Form. I need to send a message directly and
maybe only show a message like "replying... please wait" or something similar when I click the button.
How I can do that? Please help and thanks a lot.
You cannot do this from the JavaScript library directly. You would need to use Microsoft Graph API to handle sending the message. You can find instruction on how to do this in the documentation under Use the Outlook REST APIs from an Outlook add-in.
There are couple of solution one is with graph and another is with exchange api. For graph you need to little bit of extra work to get the token and auth flow working.
The other approach is to use exchange API, you don't need to do anything to do these calls you already have the authentication setup needed for you in dong this call.
Please see this documentation for the more details.
https://msdn.microsoft.com/en-us/library/office/dd633704(v=exchg.80).aspx
https://learn.microsoft.com/en-us/outlook/add-ins/web-services
If you want a client only solution you can directly call the Office.context.mailbox.makeEwsRequestAsync API (refer documentation here: https://dev.office.com/reference/add-ins/outlook/1.5/Office.context.mailbox?product=outlook)
To construct the soap request to be used in makeEWSRequest, you can use: https://msdn.microsoft.com/en-us/library/office/dn600292%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396
Note that makeEWSRequest is not supported in mobile clients.
You should ideally request for a graph token using getCallbackTokenAsync API and then use the graph APIs with the token to send the email. This should work on all clients and is a preferred way to accomplish this scenario.
I have create an Youtube v3 API key. I have 2 application, in one application it is working. In another I am getting "401 Invalid credential". I tried with 2 different keys and also tried 2 different project with 2 different keys. Still same problem.
I remember when I created an Api Key, I have verify. For second want to do same, but forgot how I did for 1st one.
Can please help me. Thanks in advance.
I solved the problem. Nothing wrong with ApiKey. Before I called Youtube search, I call another service for authentication. it was problem with Cross Domain request (CORS)
I have to use photo bucket api in one of my project. But i can't be able to get consumer key for it. I have already create developer account. But i can't go further without consumer key.
Can anyone tell me the way to get it and how to use it in photobucket. Thanks in advance.
"Our engineers are working on a new API, with lots of changes, however, this won't be available to users for a couple more months.... If you'd rather not wait for this updated API, and would like the current iteration now, please send an email to our API request email address with the following information ..."
So looks like now you can get more details and obtain keys using this link
And here is a good piece of code which can help you a lot
As I understand photobucket doesn't support any API from 2010 year.
All developer sub-domains not working.
Email pbdl-api#photobucket.com that reuqest API key doesn't exists.
I wanted to post to Google+ user stream with an extension via Javascript. I know Google+ has no APIs yet, but I've seen this done with a PHP api. Does anyone have pointers as to where to start implementing this? I don't need anything fancy: just ability to post into the stream. Thanks.
http://www.google.com/intl/en/webmasters/+1/button/index.html
here you can generate code you needed.
For anyone else that finds this - there is a Javascript plugin available
https://github.com/yipyo/google-plus-extension-jsapi
However this will only work as a browser extension because it will require access to the Google Plus page user.
I don't believe you could do it any other way and currently the API only allows read access unfortunately.
As far as I am aware right now the google plus api released is only read access.You can't pull data from it
https://developers.google.com/+/api/
We will have to wait for them to release......