Displaying 20 results from an estimated 33 matches for "api_key".
2018 Jan 24
2
Issue with concatenation of URL losing
Thank you for your help in advance.
I am trying to pull some data back from a web service
library(httr)
sample2 <- GET("https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode")
result2 <- content(sample2)
height <- result2$height[[1]]
I would like to put by own latitude and longitude in but alas when I use paste() to combine the double quotes become stuck as literally \"
lat <-10
long <20
library(httr)
sample2 <- GET(paste("htt...
2018 Jan 24
0
Issue with concatenation of URL losing
...ng in future
questions, and only you can avoid this by using your email software
properly.
########
lat <- 40.7
lon <- -76.5
tstring1 <-
"https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode"
cat( tstring1, "\n" ) # output on its own line
#> https://elevation.mapzen.com/height?json={"range":false,"shape":[{"lat":40.7,"lon":-76.5}]}&api_key=mycode
tstring2 <- paste0( "https://elevation.mapzen.com/height?json={\...
2018 Jan 19
5
API de AEMET con R?
...rminal de Ubuntu, he conseguido descargar los datos usando esto:
DESCARGAR LISTA DE ESTACIONES
wget --method GET --header 'cache-control: no-cache' --no-check-certificate
--output-document -
https://opendata.aemet.es/opendata/api/valores/climatologicos/inventarioestaciones/todasestaciones/?api_key=*vuestra
api key*
DESCARGAR DATOS HISTÓRICOS
Diciembre 2017, ALICANTE
wget --method GET --header 'cache-control: no-cache' --no-check-certificate
--output-document -
https://opendata.aemet.es/opendata/api/valores/climatologicos/diarios/datos/fechaini/2017-12-01T00:00:00UTC/fechafin/2017-12...
2008 Mar 27
0
handling post-remove URL / uninstall of application
...ensure_authenticated_to_facebook [:except => :post_remove]
before_filter :get_user, :except => :post_remove
Now I''ve defined something like this in my controller:
def post_remove
if request.post?
raise "Incorrect API Key" unless params[''fb_sig_api_key''] ==
Facebooker::Session.api_key #session[:facebook_session].api_key
my_user = WebUser.find_by_facebook_uid params[''fb_sig_user'']
WebUser.destroy my_user
end
end
Unfortunately the call to Facebooker::Session.api_key isn''t working,
below...
2011 Oct 07
1
403 Error Dont know whats wrong.
...adding this code i had a
simple enter number and enter message text boxes with the usual
edit/add/delete options.
require ''rubygems''
require ''rest_client''
class SMS < ActiveRecord::Base
API_URL = ''http://services.xxxx.com/SMS''
API_KEY = ''000000000''
RestClient.post ''API_URL/TXT/XXXX/07996750812/wakeup/API_KEY'',
:number => ''079945460812'', :nested => { :message => ''working from
inside'' }
RestClient.get ''https://yyy-Re5JQEeQqe8Avxti...
2023 Jun 07
1
Listen to ARI events
...the ARI enabled on my Asterisk test box, and want to listen to all events. I can’t find the syntax to do that. Can I only listen to events related to a stasis app?
I was hoping that a simple wscat command like this would show me all events:
wscat -c "ws://localhost:8088/ari/events?api_key=asterisk:asterisk "
This does not listen to all events by default. If you want to listen to everything you can pass subscribeAll=yes[1] like so:
ws://localhost:8088/ari/events?api_key=asterisk:asterisk&subscribeAll=yes
[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+...
2023 Jun 06
1
Listen to ARI events
...ARI enabled on my Asterisk test box, and want to listen to all
events. I can't find the syntax to do that. Can I only listen to events
related to a stasis app?
I was hoping that a simple wscat command like this would show me all events:
wscat -c "ws://localhost:8088/ari/events?api_key=asterisk:asterisk "
I know how to do it form the AMI.looking for something similar.
Thanks
Brian
(Ast newbie)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230606/b6a31b5f/attachment...
2008 Jan 29
3
Facebook Redirects to Callback Path after log in
...cebook Authentication, the
user doesn''t need to "add" the app. So at the top of my main
controller I have
class GettingStartedController < ApplicationController
ensure_authenticated_to_facebook
......
end
I hit the app and get this URL
http://www.facebook.com/tos.php?api_key=442c6504bd2362d8a7fba7303cd583ca&next=&v=1.0#
After I get the log in screen facebook sends a redirect to the CALLBACK path
http://staging.travelerstable.com:8888/?auth_token=8a83bf3c4f33b5cb16d423c292663c59
Anyone else see this? I don''t think it has anything to do with
Faceboo...
2008 Mar 20
2
Anyone having problems with asset_host not getting set up right?
Hey All,
I think I found a bug but I would be suprised since it would cause major
problems.
We setup the asset_host in init.rb with:
if File.exist?(facebook_config)
FACEBOOKER = YAML.load_file(facebook_config)[RAILS_ENV]
ENV[''FACEBOOK_API_KEY''] = FACEBOOKER[''api_key'']
ENV[''FACEBOOK_SECRET_KEY''] = FACEBOOKER[''secret_key'']
ENV[''FACEBOOKER_RELATIVE_URL_ROOT''] = FACEBOOKER[''canvas_page_name'']
ActionController::Base.asset_host ||= FACEBOO...
2008 Apr 03
3
loading settings from database
I''m just wondering what the best way to go about loading my API keys
from the database is ...
Should I simply place them in the ENV variable?
Is there a way better way to go about this?
2023 Jun 07
1
Listen to ARI events
...the ARI enabled on my Asterisk test box, and want to listen to all events. I can’t find the syntax to do that. Can I only listen to events related to a stasis app?
I was hoping that a simple wscat command like this would show me all events:
wscat -c "ws://localhost:8088/ari/events?api_key=asterisk:asterisk "
This does not listen to all events by default. If you want to listen to everything you can pass subscribeAll=yes[1] like so:
ws://localhost:8088/ari/events?api_key=asterisk:asterisk&subscribeAll=yes
[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+...
2009 Jun 22
2
URI::InvalidURIError with open-uri and Google Maps
...;m getting an URI::InvalidURIError in my controller when I use german
characters in the uri. Google accepts them but open-uri not. How to
encode them?
That''s my controller simplified:
def index
require ''open-uri''
address = "Bürgerstraße+68+01127+Dresden"
api_key = "my api key"
json = open("http://maps.google.com/maps/geo?q=#{(address)}
&output=json&key=#{api_key}").read
render :text => json
end
My environment:
Rails 2.3.2
Gem 1.3.4
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
Yours, Matthias.
2009 May 30
2
Generating and authenticating by API keys
I''m trying to get my head round offering up an API for a RESTful app; is
it just a matter of;
1. adding an api_key column to the resource on which incoming requests
will made (the app has a User model but I think the API authentication
will need to be done on the Site model to which Users belong),
2. generating the API key using Digest::SHA1 or similar (the last dev
used SHA1 for the passwords),
3. authentica...
2007 Oct 18
2
Class works on Ruby, does not work on Rails controller.
...message.to_s
rescue => exception
return "Exception : #{exception}"
end
private
def compile_query(text)
payload = <<XML
<x:FlickrRequest xmlns:x="urn:flickr">
<method>flickr.photos.search</method>
<api_key>#{@key}</api_key>
<text>#{text}</text>
</x:FlickrRequest>
XML
return payload
end
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&qu...
2006 May 22
8
flickr tag question
hey,
i am using the flickr wrapper for ruby and need to access the tags of a
specific photo. i got all the rest working. i must admit i am kind of new to
ruby, but i tried and tried and couldn''t figure it out. among other things i
want to read geotags like in my example here:
http://www.flickr.com/photos/whoisstan/146634506/
i''m sure it is deadsimple and i just overlooked it.
2008 Mar 31
13
request for change in URL pointing to facebook domain
I am requesting that we change the paths that absolutely point to the
facebook URL.
In the PHP client there is a method in the facebook.php file called
get_facebook_url() so this is easy to change there.
One reason for this:
Ringside Networks is a drop in replacement for Facebook that can be
used for localhost development and eventually an abstraction for most
social networks - it mimics the
2008 Dec 16
3
ApplicationProperties
Hi There,
I was wondering what the appropriate way to use the
applicationproperties.rb model was.
I was hoping to query it to find out which users are developers for my
app and then grant special permissions to them ...
I tried creating something like this:
class ApplicationProperties < ActiveRecord::Base
def facebook_session
@facebook_session ||=
returning
2023 Jun 07
1
Listen to ARI events
...no events being
> shown, but no error either.
>
You must specify an app as well. If you don't, it should reply with a 400.
If it's not... then are you connecting to Asterisk? What does the console
say? For example I did the following:
wscat --connect
"ws://kappa:8088/ari/events?api_key=asterisk:asterisk&subscribeAll=yes&app=test"
Which connected successfully and then I did a call which resulted in:
{"type":"ChannelCreated","timestamp":"2023-06-07T10:54:56.295-0300","channel":{"id":"1686146096.1"...
2006 Apr 06
0
Using Rails and the Flickr API
...ere? I''d like to get some clues about how all the
different pieces fit together:
flickr.photos.search -
http://www.flickr.com/services/api/flickr.photos.search.html
flickr_controller.rb -
class FlickrController < ApplicationController
def search
flickr = Flickr.new ''API_KEY''
render :partial => "photo", :collection =>
flickr.photos(:tags => params[:tags], :per_page => ''24'')
end
end
views/flickr/index.rhtml -
<%= form_remote_tag :url => {:action => ''search''}, :update => '...
2009 Feb 09
0
flickraw: flickr.tags.getListUserRaw
...://www.flickr.com/services/api/flickr.tags.getListUserRaw.html)
with the flickraw gem.
Unfortunately there is no documentation how to authenticate and then
call the method. Just calling flickr.tags.getListUserRaw doesn''t work,
although flickr.tags.getListUser does work.
I set my FlickRaw.api_key and FlickRaw.shared_secret ... how do I go
about now?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, se...