I am trying to get twitter feeds using twitter search api with geocode params. I am setting the get param as
$getfield = '?geocode=37.781157,-122.398720,1mi&lan=en&result_type=mixed'
However, I get the following tweets which are like from everywhere around the world. Can anyone provide some suggestions?
Language => popular
Created at => Mon Dec 23 21:04:53 +0000 2013
id => 4.15226528894E+17
text => Ye said hope d rose aight lol http://t.co/4vpDCFJQyV
source => Instagram
in reply to =>
in reply to screen name =>
User id => 27260086
User name => Justin Bieber
User scree name => justinbieber
User location => All Around The World
Description => #MusicMondays is in effect. Unlock #FilmFridays - SO MUCH LOVE FOR THE FANS...you are always there for me and I will always be there for you. MUCH LOVE. thanks
Protected =>
Followers count => 47889293
Language => popular
Created at => Mon Dec 23 21:03:03 +0000 2013
id => 4.15226068632E+17
text => Good first half that !
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 105119490
User name => Niall Horan
User scree name => NiallOfficial
User location => Mullingar,Westmeath,Ireland
Description => i like climbing trees ! NOW! KETCHUP
Protected =>
Followers count => 16222287
Language => popular
Created at => Mon Dec 23 21:20:28 +0000 2013
id => 4.15230451583E+17
text => Cowboys QB Tony Romo has been ruled out the rest of the season due to his back injury, per league source.
source => UberSocial for BlackBerry
in reply to =>
in reply to screen name =>
User id => 51263592
User name => Adam Schefter
User scree name => AdamSchefter
User location => New York
Description => Father, Husband, Son, University of Michigan graduate, and NFL Insider for ESPN. http://t.co/TaDqSuzq8x.
Protected =>
Followers count => 2610005
Language => popular
Created at => Mon Dec 23 21:23:41 +0000 2013
id => 4.15231258747E+17
text => BREAKING: Tony Romo is out for rest of the season with a back injury. (via #AdamSchefter)
source => web
in reply to =>
in reply to screen name =>
User id => 26257166
User name => SportsCenter
User scree name => SportsCenter
User location => Rockin' Bristol, CT since 1979
Description => All things sports, all the time. Nominate top plays using #SCtop10. *If you send us a tweet, you consent to letting ESPN use and showcase it in any media*
Protected =>
Followers count => 6449755
Language => popular
Created at => Mon Dec 23 21:22:03 +0000 2013
id => 4.15230850247E+17
text => BREAKING: Dallas Cowboys QB Tony Romo has been ruled out for the remainder of the season due to his back injury. (via #AdamSchefter)
source => web
in reply to =>
in reply to screen name =>
User id => 123417995
User name => NFL on ESPN
User scree name => ESPNNFL
User location => Bristol, CT
Description => ESPN’s official NFL coverage. Sunday NFL Countdown, Monday Night Countdown, NFL LIVE, NFL Insiders and Audibles.
Protected =>
Followers count => 490234
Language => popular
Created at => Mon Dec 23 21:15:59 +0000 2013
id => 4.15229321146E+17
text => uploaded some Christmas photos on facebook :) #JOLLYSOS https://t.co/uRc54hAOhZ http://t.co/PsplLRhBSZ
source => TweetDeck
in reply to =>
in reply to screen name =>
User id => 264107729
User name => 5 Seconds of Summer
User scree name => 5SOS
User location => Sydney, Australia
Description => 4 aussies making music :) love the people who support us! #ashton5sos #calum5sos #michael5sos #luke5sos
Protected =>
Followers count => 1771953
Language => popular
Created at => Mon Dec 23 21:09:02 +0000 2013
id => 4.15227574219E+17
text => do u ever get the urge to clean ur entire room and then 5 minutes after u start you’re like nah son and u just lay on the floor
source => web
in reply to =>
in reply to screen name =>
User id => 956730660
User name => can you not
User scree name => sassytbh
User location => professional booty clapper
Description => Fabulous, feisty, fearless, feminine and fierce.
Protected =>
Followers count => 299996
Language => popular
Created at => Mon Dec 23 20:45:52 +0000 2013
id => 4.15221741653E+17
text => #JustDance2014 is giving you a chance to come to s show & hang out so make a Mahomie ecard now!!(: http://t.co/UROLlwsaX6
source => web
in reply to =>
in reply to screen name =>
User id => 196795202
User name => Austin Mahone
User scree name => AustinMahone
User location => Miami, FL
Description => Thank you guys for the love and support!! WATCH MY NEW VIDEO FOR #BangaBanga http://t.co/LbogjD8w6v
Protected =>
Followers count => 4835975
Language => popular
Created at => Mon Dec 23 21:46:10 +0000 2013
id => 4.15236916755E+17
text => do u ever just sit there with your legs open and then remember you are a girl
source => Buffer
in reply to =>
in reply to screen name =>
User id => 147305691
User name => FAT AMY
User scree name => RelatableQuote
User location =>
Description => The names Fat Amy. I call myself that so twig bitches like you don't do it behind my back. *Parody account* // Contact: contactrelatablequote#gmail.com
Protected =>
Followers count => 2145966
Language => popular
Created at => Mon Dec 23 21:01:10 +0000 2013
id => 4.15225594399E+17
text => Our February cover star is the gorgeous and talented #ArianaGrande!: http://t.co/cNY9sWaWJl
source => HootSuite
in reply to =>
in reply to screen name =>
User id => 24190981
User name => Teen Vogue
User scree name => TeenVogue
User location =>
Description => Fashion starts here.
Protected =>
Followers count => 1888844
Language => popular
Created at => Mon Dec 23 20:46:13 +0000 2013
id => 4.15221829331E+17
text => How to let your turtle roam around without losing him. http://t.co/A8hHbKVgf9
source => Buffer
in reply to =>
in reply to screen name =>
User id => 978908012
User name => Fascinating Pictures
User scree name => Fascinatingpics
User location => Founder of
Description => Fascinating pictures of places, people, animals and nature. We show you the world. We do not claim rights to our pictures. fascinatingpictures#gmail.com
Protected =>
Followers count => 927750
Language => popular
Created at => Mon Dec 23 21:16:06 +0000 2013
id => 4.15229349252E+17
text => The Club can announce that Tim Sherwood has been appointed Head Coach with a contract to the end of the 2014/15 season
source => web
in reply to =>
in reply to screen name =>
User id => 121402638
User name => Tottenham Hotspur
User scree name => SpursOfficial
User location => Tottenham, London, England
Description => Welcome to the Official Twitter page for Tottenham Hotspur Football Club, where you can get your official Club news, competitions and more!
Protected =>
Followers count => 725499
Language => popular
Created at => Mon Dec 23 21:23:27 +0000 2013
id => 4.1523120045E+17
text => Home Made Hair Treatments http://t.co/LZpfvGiC8p
source => TweetDeck
in reply to =>
in reply to screen name =>
User id => 552594595
User name => Girl Tweets
User scree name => FemaleB00K
User location =>
Description => Hey beautiful.. â¤
Protected =>
Followers count => 96554
Language => popular
Created at => Mon Dec 23 20:43:23 +0000 2013
id => 4.15221117952E+17
text => والله Øزن الشام مبكي ورصاص بشارقاتل وانينهم من الثلوج Ù…Øزن عارعلينا بأن نرى ولانتصدق لهم بشي يدÙئهم عن البرد القاتل http://t.co/leH4iW9Cor
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 367582515
User name => العراب
User scree name => al3raabq8q8
User location => 0096566623330
Description => للدعـاية والإعــلان مع الــØـرابـــ راسلنا عبر الواتس أب
Protected =>
Followers count => 1382919
Language => popular
Created at => Mon Dec 23 21:41:56 +0000 2013
id => 4.1523585094E+17
text => This game needs a world class striker. http://t.co/IdrdPMnu6S
source => TweetDeck
in reply to =>
in reply to screen name =>
User id => 365953260
User name => Football Funnys
User scree name => FootballFunnys
User location => England
Description => The one & the original, accept no imposters. Bringing you all the best jokes, pictures and facts.
Protected =>
Followers count => 861372
Language => recent
Created at => Mon Dec 23 21:57:12 +0000 2013
id => 4.15239695456E+17
text => RT #Cuaimalosa: Esta tienda >>>>>>>>>>>> http://t.co/KHjPqyT6OH
source => web
in reply to =>
in reply to screen name =>
User id => 284822197
User name => OkonerCandanga
User scree name => BrianOkonerGep
User location =>
Description => Futuro escritor... TE ADORO ZULEIKA *-* PIN; 28FCFB17 ♥_♥ 21.12.12 ZYGR
Protected =>
Followers count => 609
Language => recent
Created at => Mon Dec 23 21:57:12 +0000 2013
id => 4.15239694151E+17
text => Carrying home a Christmas tree. I'm still not used to this Christmas + warm sun + sweat + palm trees… http://t.co/N96G5uvIBx
source => Instagram
in reply to =>
in reply to screen name =>
User id => 14621941
User name => Harlan Crystal
User scree name => harlancrystal
User location => San Francisco, CA
Description => Founder & CTO of Pocket Gems
Protected =>
Followers count => 520
Language => recent
Created at => Mon Dec 23 21:57:02 +0000 2013
id => 4.15239653391E+17
text => RT #Cuaimalosa: Esta tienda >>>>>>>>>>>> http://t.co/KHjPqyT6OH
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 121922067
User name => Albany Malavé
User scree name => DaysofAba
User location => Cuidad Bolivar/ MaturÃn js
Description => Diosâ¤ï¸.18. Futura cirujano cardiovascular y Futura Gineco- Obstetra. Pero por ahora soy solo una estudiante de medicina Udista. Baby #1claseSpecial 22/10/2013â¤ï¸
Protected =>
Followers count => 636
Language => recent
Created at => Mon Dec 23 21:56:59 +0000 2013
id => 4.15239640321E+17
text => RT #keytokidrauhl_: I wanna go out today ...
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 1279057460
User name => Nina Caton
User scree name => itsmrssykes_
User location =>
Description => #Nathanthewanted #JoshGoldenmusic
Protected =>
Followers count => 125
Language => recent
Created at => Mon Dec 23 21:56:43 +0000 2013
id => 4.15239574257E+17
text => Received my new Rebel water resistant speaker via #Indiegogo! Love it. Wish I had ordered a 3-pack. http://t.co/pMQpJ2FckF
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 69399196
User name => Natasha Pecor
User scree name => NPecor
User location => San Francisco, CA
Description => Leading Platform BD #Yelp, Formerly Freestyle Capital, Duke (Fuqua) MBA, Cal Poly Engineer, tech enthusiast, & lover of vegetarian cuisine.
Protected =>
Followers count => 2062
Language => recent
Created at => Mon Dec 23 21:56:40 +0000 2013
id => 4.15239558952E+17
text => RT #Cuaimalosa: Esta tienda >>>>>>>>>>>> http://t.co/KHjPqyT6OH
source => web
in reply to =>
in reply to screen name =>
User id => 150881224
User name => ⥠â€
User scree name => VeroRdrgz
User location => Insta: verordrgz
Description => 16. (06 i love you ñovia aquà gdjrmmâ¤).
Protected =>
Followers count => 1489
Language => recent
Created at => Mon Dec 23 21:56:30 +0000 2013
id => 4.15239515826E+17
text => Farewell candlestick #goldblooded #thestick #keepfuckingupseattle
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 88371389
User name => Jonathan Le
User scree name => jonathanthongle
User location =>
Description => So it goes*
Protected =>
Followers count => 179
Language => recent
Created at => Mon Dec 23 21:56:29 +0000 2013
id => 4.15239512139E+17
text => Esta tienda >>>>>>>>>>>> http://t.co/KHjPqyT6OH
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 177616310
User name => ana ☾
User scree name => Cuaimalosa
User location => Amo a #PoeTrollero
Description => El amor de mi vida, la mejor amiga del mundo #GabaaGonzalez. Mejores amigas #Moscarelliale #coralm__ ♥
Protected =>
Followers count => 7354
Language => recent
Created at => Mon Dec 23 21:55:58 +0000 2013
id => 4.15239383785E+17
text => But she's driving me insane!
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 287942657
User name => Michael Rose
User scree name => xenopeltis
User location => San Francisco, CA
Description => Singing and dancing in a rock n roll band
Protected =>
Followers count => 103
Language => recent
Created at => Mon Dec 23 21:55:54 +0000 2013
id => 4.15239368396E+17
text => Always cheers me up no matter what http://t.co/gQ9qnlbUBj
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 287942657
User name => Michael Rose
User scree name => xenopeltis
User location => San Francisco, CA
Description => Singing and dancing in a rock n roll band
Protected =>
Followers count => 103
Language => recent
Created at => Mon Dec 23 21:55:47 +0000 2013
id => 4.15239336008E+17
text => People have such bad taste in everything.
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 102180426
User name => Rachel
User scree name => rachietalksalot
User location =>
Description => what's the difference between sass and 'tude?
Protected =>
Followers count => 242
Language => recent
Created at => Mon Dec 23 21:55:39 +0000 2013
id => 4.15239306052E+17
text => #lea_rosen #timhwang KB3TOS
source => Twitter for iPhone
in reply to => 4.15231959301E+17
in reply to screen name => lea_rosen
User id => 393224517
User name => Stuart Anderson
User scree name => emblem__
User location => San Francisco
Description => Security. Systems. Robotics. Bakatter.
Protected =>
Followers count => 932
Language => recent
Created at => Mon Dec 23 21:55:34 +0000 2013
id => 4.15239284628E+17
text => I'm at #RadioShack (San Francisco, CA) http://t.co/J6hywgigZk
source => foursquare
in reply to =>
in reply to screen name =>
User id => 1305220387
User name => Food/Tech Tales Guru
User scree name => foodtechtales
User location => San Francisco 94104
Description => Electronics, Food and Wine may have been my career fields for years on and off but one thing always going steady has been I telling a lot of tales about.....
Protected =>
Followers count => 109
Language => recent
Created at => Mon Dec 23 21:55:24 +0000 2013
id => 4.15239241867E+17
text => {finally enjoying the beautifully decorated tree at the palace!} 🎄 # Palace Hotel http://t.co/E88KEAjkgm
source => Instagram
in reply to =>
in reply to screen name =>
User id => 285681235
User name => Kimberly Oulton
User scree name => misskimberlyo
User location => San Francisco
Description => Corporate + public affairs at #EdelmanPR. Active in #JuniorLeagueSF + #BayAreaCouncil. Former city + mayoral protocol representative. Views are my own.
Protected =>
Followers count => 441
Language => recent
Created at => Mon Dec 23 21:55:13 +0000 2013
id => 4.15239194576E+17
text => No homeless man I would not like to be your girl thnkz
source => Twitter for iPhone
in reply to =>
in reply to screen name =>
User id => 248058101
User name => Rachel
User scree name => sparklebabyxoxo
User location =>
Description =>
Protected =>
Followers count => 45
Related
I have setup browser calls and in my TwiML App , setup the Status CallBack url . Twilio posts the status in the format
array (
'ApiVersion' => '2010-04-01',
'Called' => NULL,
'CallStatus' => 'completed',
'Duration' => '1',
'From' => 'client:browser',
'CallDuration' => '13',
'Direction' => 'inbound',
'Timestamp' => 'Mon, 16 Apr 2018 19:35:26 +0000',
'AccountSid' => 'asdasdasdadasdasdasdasdasdasdas',
'CallbackSource' => 'call-progress-events',
'ApplicationSid' => 'rwerwerwerwewewewewwrwe',
'Caller' => 'client:browser',
'SequenceNumber' => '0',
'To' => NULL,
'CallSid' => 'CA9c6408108969fsf6f1c53396003d931',
)
I am trying to get the call to ,from and other details. I did was
$callsid = $_POST['CallSid'];
$call = $client->calls($callsid)->fetch();
But it failed everytime. When I checked my dashboard for the CallSod , it is different from what they sent in the webhook.
Is there something I am missing ?
Resolved it. I need to get the Child Call SID to get that information .
$call = $client->calls->read(
array("ParentCallSid" => $callsid )
);
I'm looking to return the schedule date for a stream in YouTube.
Example of scheduled streams:
YT Link: https://www.youtube.com/channel/UCP7jMXSY2xbc3KCAE0MHQ-A
This is my code to pull this data out using the YouTube v3 API:
$videos = $this->yt->searchAdvanced(array(
'q' => '',
'part' => 'snippet',
'channelId' => $this->channel_id,
'eventType' => $event_type, // Upcoming
'type' => 'video',
'order' => 'date',
'maxResults' => $max,
'key' => YOUTUBE_API_KEY
));
Here is the object that is returned from this:
If I use my function to get video info this is all the information I can get. This is using parts:
id, snippet, contentDetails, player, statistics, status
: Where is the scheduled date? :
stdClass Object
(
[kind] => youtube#video
[etag] => "q5k97EMVGxODeKcDgp8gnMu79wM/KAZsrzeX5ImiUQpLbwhPR7lo9mA"
[id] => qUAmTYHEyM8
[snippet] => stdClass Object
(
[publishedAt] => 2016-03-03T06:48:50.000Z
[channelId] => UCP7jMXSY2xbc3KCAE0MHQ-A
[title] => Match 3 - Google DeepMind Challenge Match: Lee Sedol vs AlphaGo
[description] => Watch DeepMind's program AlphaGo take on the legendary Lee Sedol (9-dan pro), the top Go player of the past decade, in a $1M 5-game challenge match in Seoul. This is the livestream for Match 3 to be played on: 12th March 13:00 KST (local), 04:00 GMT; note for US viewers this is the day before on: 11th March 20:00 PT, 23:00 ET.
In October 2015, AlphaGo became the first computer program ever to beat a professional Go player by winning 5-0 against the reigning 3-times European Champion Fan Hui (2-dan pro). That work was featured in a front cover article in the science journal Nature in January 2016.
Match commentary by Michael Redmond (9-dan pro) and Chris Garlock.
[thumbnails] => stdClass Object
(
[default] => stdClass Object
(
[url] => https://i.ytimg.com/vi/qUAmTYHEyM8/default_live.jpg
[width] => 120
[height] => 90
)
[medium] => stdClass Object
(
[url] => https://i.ytimg.com/vi/qUAmTYHEyM8/mqdefault_live.jpg
[width] => 320
[height] => 180
)
[high] => stdClass Object
(
[url] => https://i.ytimg.com/vi/qUAmTYHEyM8/hqdefault_live.jpg
[width] => 480
[height] => 360
)
[standard] => stdClass Object
(
[url] => https://i.ytimg.com/vi/qUAmTYHEyM8/sddefault_live.jpg
[width] => 640
[height] => 480
)
[maxres] => stdClass Object
(
[url] => https://i.ytimg.com/vi/qUAmTYHEyM8/maxresdefault_live.jpg
[width] => 1280
[height] => 720
)
)
[channelTitle] => DeepMind
[categoryId] => 28
[liveBroadcastContent] => upcoming
[localized] => stdClass Object
(
[title] => Match 3 - Google DeepMind Challenge Match: Lee Sedol vs AlphaGo
[description] => Watch DeepMind's program AlphaGo take on the legendary Lee Sedol (9-dan pro), the top Go player of the past decade, in a $1M 5-game challenge match in Seoul. This is the livestream for Match 3 to be played on: 12th March 13:00 KST (local), 04:00 GMT; note for US viewers this is the day before on: 11th March 20:00 PT, 23:00 ET.
In October 2015, AlphaGo became the first computer program ever to beat a professional Go player by winning 5-0 against the reigning 3-times European Champion Fan Hui (2-dan pro). That work was featured in a front cover article in the science journal Nature in January 2016.
Match commentary by Michael Redmond (9-dan pro) and Chris Garlock.
)
)
[contentDetails] => stdClass Object
(
[duration] => PT0S
[dimension] => 2d
[definition] => sd
[caption] => false
[licensedContent] => 1
)
[status] => stdClass Object
(
[uploadStatus] => uploaded
[privacyStatus] => public
[license] => youtube
[embeddable] => 1
[publicStatsViewable] => 1
)
[statistics] => stdClass Object
(
[viewCount] => 41
[likeCount] => 1
[dislikeCount] => 0
[favoriteCount] => 0
[commentCount] => 0
)
[player] => stdClass Object
(
[embedHtml] =>
)
)
Note that the published date I highlighted is NOT the schedule date.
As you can see there is no scheduled date. Do I need to pass more data to 'part'? Their API suggests there's no more data that can be pulled back too.
https://developers.google.com/youtube/v3/docs/search/list#request
Thanks
Okay I worked it out.
Simply add liveStreamingDetails to the part parameter.
I was trying to achieve this through search.list. Instead use the videos.list with liveStreamingDetails to get the schedule date as search.list doesn't support liveStreamingDetails.
Cheers
The YouTube Live Streaming API's list documentation has a relevant example:
list (by broadcast status) ...retrieve information about all, active, completed, or upcoming live broadcasts. Note that the broadcastStatus parameter is also set to all to ensure that all matching broadcasts are included in the response.
GET https://www.googleapis.com/youtube/v3/liveBroadcasts?part=snippet%2CcontentDetails%2Cstatus&broadcastStatus=active&broadcastType=all&key=[YOUR_API_KEY] HTTP/1.1
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
The start time can be found in the part=liveStreamingDetails, which will contain scheduledStartTime in ISO format, and activeLiveChatId.
I am filling PDF forms in my rails app with the pdf-forms (https://github.com/jkraemer/pdf-forms) gem, based on PDFtk. Text fields work as I would expect, but my checkbox fields do not. The boxes display well in Chrome, but in Preview and Mail the checkbox fields appear empty.
class FormsController < ApplicationController
require 'pdf_forms'
def acord25
#policy = Policy.find(params[:id])
pdftk = PdfForms.new('/usr/local/bin/pdftk')
# find out the field names that are present in form.pdf
pdftk.get_field_names 'lib/pdfs/acord25.pdf'
# take form.pdf, set the 'foo' field to 'bar' and save the document to myform.pdf
pdftk.fill_form '/lib/pdfs/acord25.pdf', "acord25.pdf",
"F[0].P1[0].Form_CompletionDate_A[0]" => #policy.dateIssued,
"F[0].P1[0].Producer_FullName_A[0]" => #policy.client.broker.name,
"F[0].P1[0].Producer_MailingAddress_LineOne_A[0]" => #policy.client.broker.company,
"F[0].P1[0].Producer_MailingAddress_LineTwo_A[0]" => #policy.client.broker.address,
"F[0].P1[0].Producer_ContactPerson_FullName_A[0]" => #policy.legalVesting,
"F[0].P1[0].Producer_ContactPerson_PhoneNumber_A[0]" => #policy.client.broker.phone,
"F[0].P1[0].Producer_FaxNumber_A[0]" => #policy.client.broker.fax,
"F[0].P1[0].Producer_ContactPerson_EmailAddress_A[0]" => #policy.client.broker.email,
"F[0].P1[0].NamedInsured_FullName_A[0]" => #policy.client.name,
"F[0].P1[0].NamedInsured_MailingAddress_LineOne_A[0]" => #policy.client.address.titlecase,
"F[0].P1[0].GeneralLiability_CoverageIndicator_A[0]" => 1,
"F[0].P1[0].GeneralLiability_OccurrenceIndicator_A[0]" => 1,
"F[0].P1[0].GeneralLiability_GeneralAggregate_LimitAppliesPerLocationIndicator_A[0]" => 1,
"F[0].P1[0].Policy_PolicyNumberIdentifier_A[0]" => #policy.policyNumber,
"F[0].P1[0].Policy_EffectiveDate_A[0]" => #policy.dateEffective,
"F[0].P1[0].PolicyExpirationGeneral[0]" => #policy.term.dayEnd,
"F[0].P1[0].Insurer_FullName_A[0]" => "Lexington Insurance Company",
"F[0].P1[0].Insurer_NAICCode_A[0]" => 19437,
"F[0].P1[0].Insurer_FullName_B[0]" => "Commerce & Industry Insurance Company",
"F[0].P1[0].Insurer_NAICCode_B[0]" => 19410,
"F[0].P1[0].Insurer_FullName_C[0]" => "Great American Insurance Company",
"F[0].P1[0].Insurer_NAICCode_C[0]" => 37532,
"F[0].P1[0].Insurer_FullName_D[0]" => "Admiral Insurance Company",
"F[0].P1[0].Insurer_NAICCode_D[0]" => 24856,
"F[0].P1[0].GeneralLiability_InsurerLetterCode_A[0]" => "A",
"F[0].P1[0].GeneralLiability_EachOccurrence_LimitAmount_A[0]" => 1000000,
"F[0].P1[0].GeneralLiability_FireDamageRentedPremises_EachOccurrenceLimitAmount_A[0]" => 50000,
"F[0].P1[0].GeneralLiability_MedicalExpense_EachPersonLimitAmount_A[0]" => "Excluded",
"F[0].P1[0].GeneralLiability_PersonalAndAdvertisingInjury_LimitAmount_A[0]" => 1000000,
"F[0].P1[0].GeneralLiability_GeneralAggregate_LimitAmount_A[0]" => 2000000,
"F[0].P1[0].GeneralLiability_ProductsAndCompletedOperations_AggregateLimitAmount_A[0]" => 2000000,
"F[0].P1[0].Vehicle_InsurerLetterCode_A[0]" => "A",
"F[0].P1[0].Vehicle_HiredAutosIndicator_A[0]" => 1,
"F[0].P1[0].Vehicle_NonOwnedAutosIndicator_A[0]" => 1,
"F[0].P1[0].Policy_PolicyNumberIdentifier_B[0]" => #policy.policyNumber,
"F[0].P1[0].Policy_EffectiveDate_B[0]" => #policy.dateEffective,
"F[0].P1[0].Policy_ExpirationDate_B[0]" => #policy.term.dayEnd,
"F[0].P1[0].Vehicle_CombinedSingleLimit_EachAccidentAmount_A[0]" => 1000000,
"F[0].P1[0].ExcessUmbrella_InsurerLetterCode_A[0]" => "B",
"F[0].P1[0].ExcessUmbrella_OccurrenceIndicator_A[0]" => 1,
"F[0].P1[0].ExcessUmbrella_DeductibleIndicator_A[0]" => 1,
"F[0].P1[0].ExcessUmbrella_Umbrella_DeductibleOrRetentionAmount_A[0]" => #policy.coverages.first.deductibleOcc,
"F[0].P1[0].Policy_PolicyNumberIdentifier_D[0]" => #policy.policyNumber,
"F[0].P1[0].Policy_EffectiveDate_D[0]" => #policy.dateEffective,
"F[0].P1[0].Policy_ExpirationDate_D[0]" => #policy.term.dayEnd,
"F[0].P1[0].ExcessUmbrella_Umbrella_EachOccurrenceAmount_A[0]" => 10000000,
"F[0].P1[0].ExcessUmbrella_Umbrella_AggregateAmount_A[0]" => 10000000
send_file("#{Rails.root}/acord25.pdf", filename: "#{#policy.client.name} - #{#policy.carrier.name} - #{#policy.policyNumber} (#{Time.now}).pdf", type: "application/vnd.ms-excel")
end
end
TL;DR: Checked boxes display in Chrome, but not in Preview or Mail.
I appreciate any help or leads on what the problem might be. Thank you!
Turns out the PDF form was corrupted. Had to recreate form, not a PDFTK issue.
Hi I'm trying to use the wsdl api to get shipping cost calculated for my website.
I'm using opencart and this module (http://www.opencart.com/index.php?route=extension/extension/info&extension_id=2055&filter_search=fedex&sort=e.date_modified&order=DESC).
On checkout I'm getting this error:
WARNING::556::There are no valid services available.
But I tried the same from and to address on the calculator on the fedex website and it gives me two services: International Priority and International Economy
This is the debug data I have:
Array
(
[WebAuthenticationDetail] => Array
(
[UserCredential] => Array
(
[Key] => REDACTED
[Password] => REDACTED
)
)
[ClientDetail] => Array
(
[AccountNumber] => REDACTED
[MeterNumber] => REDACTED
)
[TransactionDetail] => Array
(
[CustomerTransactionId] => *** Rate Request v9 using PHP ***
)
[Version] => Array
(
[ServiceId] => crs
[Major] => 9
[Intermediate] => 0
[Minor] => 0
)
[ReturnTransitAndCommit] => 1
[RequestedShipment] => Array
(
[DropoffType] => REQUEST_COURIER
[ShipTimestamp] => 2011-09-28T09:02:01+00:00
[PackagingType] => YOUR_PACKAGING
[TotalInsuredValue] => Array
(
[Amount] => 2000
[Currency] => EUR
)
[Shipper] => Array
(
[Address] => Array
(
[StreetLines] => Array
(
[0] =>
[1] =>
)
[City] => Ronchis
[StateOrProvinceCode] =>
[PostalCode] => 33050
[CountryCode] => IT
[Residential] => 1
)
)
[Recipient] => Array
(
[Address] => Array
(
[StreetLines] => Array
(
[0] =>
[1] =>
)
[City] => villach
[StateOrProvinceCode] =>
[PostalCode] => 9500
[CountryCode] => AT
[Residential] => 1
)
)
[ShippingChargesPayment] => Array
(
[PaymentType] => SENDER
[Payor] => Array
(
[AccountNumber] => 263150082
[CountryCode] => IT
)
)
[RateRequestTypes] => LIST
[PackageCount] => 1
[PackageDetailSpecified] => 1
[PackageDetail] => INDIVIDUAL_PACKAGES
[RequestedPackageLineItems] => Array
(
[0] => Array
(
[Weight] => Array
(
[Value] => 34
[Units] => KG
)
[Dimensions] => Array
(
[Length] => 48
[Width] => 53
[Height] => 122
[Units] => CM
)
)
)
)
)
----------
-- NUSOAP -- Array
(
[HighestSeverity] => WARNING
[Notifications] => Array
(
[Severity] => WARNING
[Source] => crs
[Code] => 556
[Message] => There are no valid services available.
[LocalizedMessage] => There are no valid services available.
)
[TransactionDetail] => Array
(
[CustomerTransactionId] => *** Rate Request v9 using PHP ***
)
[Version] => Array
(
[ServiceId] => crs
[Major] => 9
[Intermediate] => 0
[Minor] => 0
)
)
What should I do?
I just ran into this error, and it turned out that the issue was an invalid postal code. Double check that you are specifying the "Shipper" information correctly.
Also, if that doesn't work give the FedEx customer support phone number a try. We would not have figured this issue out without their help.
I was also having this issue .. but with Joomla, Virtuemart. Because the FedEx server is the same so may be my solution could help somebody else too..
Here are the main things what I fixed to fix this issue.
Product's Weight should be less than the limit if you've set any as Maximum Weight.
If you are using any packaging has more weight than FedEx's provided box i.e. 25KG BOX or 10KG box, then always use "Your Own packaging"
it's true, do keep an eye on ZIP===States (i was testing and put wrong state with different zip) And this ZIP should be added in "Shop's Address" because this is considered as FROM and the destination address as well.
Do note if products have added weights. LWH (Length, Width, Height).
Mine issue resolved after weeks of trouble! I wish somebody else could also resolve this issue if facing.
I was facing following error
"10 kg packaging box is **only** Available at FedEx World Service Center® locations!"
which was a big help to resolve the limitation i've set.
This issue happen when one of the bellow cases.
Country given is not associated with FedEx account.
Origin address is not real, Especially the post code.
The given packagingType is available in your country.
You need to provide a ServiceType. One of these:
EUROPE_FIRST_INTERNATIONAL_PRIORITY
FEDEX_1_DAY_FREIGHT
FEDEX_2_DAY
FEDEX_2_DAY_AM
FEDEX_2_DAY_FREIGHT
FEDEX_3_DAY_FREIGHT
FEDEX_EXPRESS_SAVER
FEDEX_FIRST_FREIGHT
FEDEX_FREIGHT_ECONOMY
FEDEX_FREIGHT_PRIORITY
FEDEX_GROUND
FIRST_OVERNIGHT
GROUND_HOME_DELIVERY
INTERNATIONAL_ECONOMY
INTERNATIONAL_ECONOMY_FREIGHT
INTERNATIONAL_FIRST
INTERNATIONAL_PRIORITY
INTERNATIONAL_PRIORITY_FREIGHT
PRIORITY_OVERNIGHT
SMART_POST
STANDARD_OVERNIGHT
Use it in the same level as the DropoffType
Make sure that you have the Zip Code set to required.
You can do that in System -> Localization -> Countries.
It is not required by default in opencart, and the fedex shipping system will not work without it.
This issue can also be caused by requesting insurance in a country that doesn't support it, such as Canada.
I also ran into this problem and the solution was trimming extra spaces from the end of the address, city & postal code. After that, all was well again.
I don't know why FedEx's API all of a sudden stopped accepting the extra spaces, but who knows...
In my case, this was caused by trying to ship internationally from the US to Italy, and having specified a SignatureOptionDetail of NO_SIGNATURE_REQUIRED. Changing this to SERVICE_DEFAULT fixed it.
I'm trying to get Paypal SetExpressCheckout operation to add first and last name for billing. I'm using ActiveMerchant. I'm seeing the address field pre-populated (street, state, city,zip-code) but nothing else.
#### gateway ######
gateway = ActiveMerchant::Billing::PaypalExpressGateway.new(:login => 'login',:password => 'pass',:signature => 'sig')
### options ######
#options = Hash.new
#options.merge!(:ip => '127.0.0.1')
#options.merge!(:return_url => '127.0.0.1')
#options.merge!(:return_url => 'http://www.google.com')
#options.merge!(:cancel_return_url => 'http://www.google.com')
#options.merge!(:name => 'name')
#options.merge!(:description => 'description')
#options.merge!(:max_amount => 5000)
#options.merge!(:solution_type => 'Sole')
#options.merge!(:no_shipping => 1)
#options.merge!(:address_override => 1)
### build address
#address = Hash.new
#address.merge!(:name => "Joe User")
#address.merge!(:address1 => "111 ABCD EFG")
#address.merge!(:address2 => nil)
#address.merge!(:city => "Fremont")
#address.merge!(:state => "CA")
#address.merge!(:country => "US")
#address.merge!(:phone => "408-111-2222")
#options.merge!(:address => #address)
setup_response = gateway.setup_purchase(5000, #options)
redirect_to gateway.redirect_url_for(setup_response.token)
On the resultant page, I'm not seeing the name pre-filled for billing.
What am I doing wrong?
Thanks
I had the same issue as you did. After some research I came to the conclusion that this is a bug in ActiveMerchant. Please see the issue that I filed. It includes an explanation of how I patched my code to make phone number and names work:
https://github.com/Shopify/active_merchant/issues/161