How to test oEmbed discovery - oembed

I know that you can use embed.ly to test your oEmbed provider service, but do you know any other services where you can test oEmbed discovery?
I want to make sure that oEmbed-enabled consumers can correctly tap into my oEmbed provider, but I couldn't find a way to do so.
Any help or advice is appreciated.

you could try drupal oEmbed client/provider. Use the client to test it.
EDIT: if the above link doesn't work, try this one instead.

iframely has a great debugger for the oembed discovery mechanism: http://debug.iframely.com/

Related

Endpoint nodes list in Kaa

I want to get list of endpoints in Kaa, I see many REST functions here but all of them need informations like Endpoint Hash Key and ... but I don't know how I can find them. Anybody can help me how I can do this ? and is there a way for geting event on device discovery in Kaa ?
Thanks in advance
On your link for each Rest call, there is the description with the endpoint cresponding to the request. For example:
Get user authentication status
URL : /kaaAdmin/rest/api/auth/checkAuth
Same for parameter needed.
If that's not what you are looking for, you might have to explain a little bit more.
You are able to get endpoint key hash in 3 ways :
Get information from Client SDK on your device. Check appropriate documentation of you desirable SDK.
Look at Admin UI in Endpoint profiles menu.
Get via Admin REST API .
Please, check profiling section.
I think it will help you to find your desired information.

Why am I receiving a 500 status when trying to connect with ASANA api?

I am using this example: https://github.com/ajimix/asana-api-php-class/blob/master/examples/oauth.php to learn how to use the asana's oauth. I already registered my app on the asana's developers webpage. But, when I get the asana's response with my 'redirect_url'?code=0%XXXXXXX, localhost gives me a 500 status. I don't know why, does anyone know how I can solve it?
I tried using the other examples in there: https://github.com/ajimix/asana-api-php-class/blob/master/examples/, but I wasn't able to make them run either, I always get a 500 status. I think that the problem must be in my server, but I don't how solve it. Maybe changing something on the .htaccess file, but I don't really know what to put in there.
If you're looking to use the Asana API from PHP may I recommend the official first-party client: https://github.com/Asana/php-asana
It also contains examples of how to use with OAuth and is officially supported by us at Asana :-)

Local twitter card validation

Is it possible for me to test twitter card validation from a local host? i.e. http://127.0.0.1:3000/
Cheers
It's not, the twitter validator must be able to access the code, and it can't if its local.
There are some free, limited hosting services, you should check some out if you don't have a server to try your code on right now.
EDIT: I just came across this other question on twitter cards: Twitter Card Validator error when in development
The OP's comment on the answer mentions him using https://ngrok.com/, this could be useful to you too

How to use Twitter User Streams

I am new in Twitter API. I have a requirement like I have to pull the information of an authenticated twitter user to know the number of followers. I can do this using REST API but I have a problem here. So I have taken the way to use Twitter User Streams.
I am not able to integrate this functionality in the site. I am using twitter console( https://dev.twitter.com/console ). But there I am not able to get any kind of result, it actually hangs/shows gateway timeout. And that's for I am not able to configure that how to write the code for this or how to use this in site. I am not passing any kind of parameters.
So, any body can please help in this would be very grateful( a clean sample code for this or any link where to get the good documentation ). I have already checked with twitter dev documentations.
Thanks in advance :)

Accessing Yelp API with iOS using the OAuthConsumer

Yelp have a link to an API on their website: http://www.yelp.co.uk/developers/documentation/v2/authentication
I am trying to access it with iOS (using this API), but I am quite new to OAuth.
Can someone supply some example Objective-C of how to use this API?
The only ones I can find need a 'get request token' URL, and Yelp does not need this as is uses a signature.
Thanks
I don't know if it helps, but have you looked at their github examples? that should give you some enlightenment https://github.com/Yelp/yelp-api/tree/master/v2/ios/YelpAPI
The github example you mention has a test that demonstrates how to query restaurants in New York, which worked for me.
You need to edit Tests/OAuthTest.m to supply your OAuth info (i.e. replace the strings "CONSUMER_KEY", "CONSUMER_SECRET", "TOKEN", "TOKEN_SECRET" with valid values).
Then you need to make sure you are building the Tests target. The default, at least for me, was the YelpAPI target.

Resources