Hello Jesse, I have implemented a token request with https://github.com/kivra/oauth2_client which is also using restc and it is ok. Do you have something in mind about making a payment call with restc. I just couldnt figured it out how to put variables in correct form to send REST call. Trying to implement the call below with CB;
curl -v https://api.sandbox.paypal.com/v1/payments/payment \ -H "Content-Type: application/json" \ -H "Authorization: Bearer Access-Token" \ -d '{ "intent":"sale", "redirect_urls":{ "return_url":"http://example.com/your_redirect_url.html", "cancel_url":"http://example.com/your_cancel_url.html" }, "payer":{ "payment_method":"paypal" }, "transactions":[ { "amount":{ "total":"7.47", "currency":"USD" } } ] }' 17 Nisan 2016 Pazar 21:26:39 UTC+3 tarihinde Jesse Gumm yazdı: > > I'm pretty sure I use ibrowse, but when I get back, I'll let you know. I > can probably share some paypal code from my work-in-progress payment > framework for Nitrogen. > > -- > Jesse Gumm > Owner, Sigma Star Systems > 414.940.4866 || sigma-star.com || @jessegumm > On Apr 17, 2016 1:09 PM, "Mert Öztürk" <asksome...@gmail.com <javascript:>> > wrote: > >> Well bad news is hackney doesn't work with https connection as they wrote >> "it works". I searched a bit and they had many issues with connection >> failures. >> Can you guys suggest any advice for making REST calls for to use Paypal >> (https) ? >> Good news is i can now add libraries to my app :) >> >> Thanks >> >> >> 17 Nisan 2016 Pazar 20:56:39 UTC+3 tarihinde Jesse Gumm yazdı: >>> >>> You're very welcome. >>> >>> I'm glad that helped. >>> >>> Cheers, >>> >>> -- >>> Jesse Gumm >>> Owner, Sigma Star Systems >>> 414.940.4866 || sigma-star.com || @jessegumm >>> On Apr 17, 2016 12:33 PM, "Mert Öztürk" <asksome...@gmail.com> wrote: >>> >>>> Thanks Jesse, now i understand. >>>> >>>> Thank you for your support. >>>> Mert >>>> >>>> 17 Nisan 2016 Pazar 20:31:17 UTC+3 tarihinde Jesse Gumm yazdı: >>>>> >>>>> All of those deps you see in the restc app *should* be in your CB >>>>> app's deps directory, at the same level as boss, erlydtl, boss_db, etc. >>>>> >>>>> The deps within deps/restc/deps are outright ignored by erlang. >>>>> >>>>> -- >>>>> Jesse Gumm >>>>> Owner, Sigma Star Systems >>>>> 414.940.4866 || sigma-star.com || @jessegumm >>>>> On Apr 17, 2016 12:20 PM, "Mert Öztürk" <asksome...@gmail.com> wrote: >>>>> >>>>> I recompiled with rebar get-deps compile but didnt work again. >>>>> >>>>> restc app is something like below; >>>>> >>>>> restc deps >>>>> - erlsom >>>>> - hackney -------------------------hackney deps >>>>> - idna >>>>> - ssl_verify_hostname >>>>> - idna >>>>> - jsx >>>>> - mochiweb_util >>>>> - ssl_verify_hostname >>>>> >>>>> I can see that they are compiled well and ebins are not empty. >>>>> And i cant start with application:start(restc) >>>>> >>>>> Do i have to make changes in boss.config? >>>>> Or should i sub-deps of restc and add them manually by one by one to >>>>> work hackney first and then the restc? >>>>> >>>>> First time of adding an extra library with deps in it so i couldnt >>>>> figure out how to do it correctly. >>>>> >>>>> Thanks >>>>> Mert >>>>> >>>>> 17 Nisan 2016 Pazar 20:02:34 UTC+3 tarihinde Jesse Gumm yazdı: >>>>>> >>>>>> Oh gotcha. You want to 'rebar get-deps' and 'rebar compile' from >>>>>> within the root of your CB app. >>>>>> >>>>>> With hackney in the deps directory of your restc app, it's not going >>>>>> to be recognized by the parent app. >>>>>> >>>>>> -- >>>>>> Jesse Gumm >>>>>> Owner, Sigma Star Systems >>>>>> 414.940.4866 || sigma-star.com || @jessegumm >>>>>> On Apr 17, 2016 11:48 AM, "Mert Öztürk" <asksome...@gmail.com> wrote: >>>>>> >>>>>>> Hello Jesse, >>>>>>> >>>>>>> Forgot to mention. It is the deps folder of restc app and when i >>>>>>> type application:start(hackney) i got the following: {error,{"no such >>>>>>> file >>>>>>> or directory","hackney.app"}} >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> 17 Nisan 2016 Pazar 19:00:36 UTC+3 tarihinde Jesse Gumm yazdı: >>>>>>>> >>>>>>>> That means you need to start hackney first with >>>>>>>> application:start(hackney) >>>>>>>> >>>>>>>> -- >>>>>>>> Jesse Gumm >>>>>>>> Owner, Sigma Star Systems >>>>>>>> 414.940.4866 || sigma-star.com || @jessegumm >>>>>>>> On Apr 17, 2016 10:51 AM, "Mert Öztürk" <asksome...@gmail.com> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hello, >>>>>>>>> >>>>>>>>> I just could not succeed adding restc application to my cb app. >>>>>>>>> When i add "{restc, ".*", {git, "git:// >>>>>>>>> github.com/kivra/restclient.git", {tag, "0.3.0"}}}" as rebar >>>>>>>>> dependency on rebar.config, and compile it, it just doesnt work. >>>>>>>>> application:start(restc) outputs the error with its deps app >>>>>>>>> hackney: {error,{not_started,hackney}} >>>>>>>>> Do i have to get deps of restc to boss deps folder and recompile >>>>>>>>> it? >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> >>>>>>>>> >>>>>>>>> 14 Nisan 2016 Perşembe 21:58:32 UTC+3 tarihinde Mert Öztürk yazdı: >>>>>>>>>> >>>>>>>>>> Thanks, i will check it soon. >>>>>>>>>> >>>>>>>>>> 14 Nisan 2016 Perşembe 16:40:16 UTC+3 tarihinde H. İbrahim Yılmaz >>>>>>>>>> yazdı: >>>>>>>>>>> >>>>>>>>>>> Hi Mert, >>>>>>>>>>> >>>>>>>>>>> I think there is a REST API for Paypal. What is the problem I >>>>>>>>>>> don't understand. >>>>>>>>>>> >>>>>>>>>>> If you need REST client examples you can go easily to kivra's >>>>>>>>>>> restclient https://github.com/kivra/restclient >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Cheers, >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> *"It doesn't matter who you are or what you look like, so long >>>>>>>>>>> as somebody loves you." - Roald Dahl* >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> 14.04.2016, 14:31, "Mert Öztürk" <asksome...@gmail.com>: >>>>>>>>>>> >>>>>>>>>>> Hello, >>>>>>>>>>> >>>>>>>>>>> I am searching for a Paypal integration example with CB or is it >>>>>>>>>>> possible to be done? >>>>>>>>>>> >>>>>>>>>>> Thanks >>>>>>>>>>> Mert >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>>> Google Groups "ChicagoBoss" group. >>>>>>>>>>> To unsubscribe from this group and stop receiving emails from >>>>>>>>>>> it, send an email to chicagoboss...@googlegroups.com. >>>>>>>>>>> Visit this group at https://groups.google.com/group/chicagoboss. >>>>>>>>>>> To view this discussion on the web visit >>>>>>>>>>> https://groups.google.com/d/msgid/chicagoboss/eecd7871-122e-4f35-ab97-6fa49635aff1%40googlegroups.com >>>>>>>>>>> >>>>>>>>>>> <https://groups.google.com/d/msgid/chicagoboss/eecd7871-122e-4f35-ab97-6fa49635aff1%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>>>> . >>>>>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>> You received this message because you are subscribed to the Google >>>>>>>>> Groups "ChicagoBoss" group. >>>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>>> send an email to chicagoboss...@googlegroups.com. >>>>>>>>> Visit this group at https://groups.google.com/group/chicagoboss. >>>>>>>>> To view this discussion on the web visit >>>>>>>>> https://groups.google.com/d/msgid/chicagoboss/25c2cda4-1d4f-434f-8115-8e712e2b37df%40googlegroups.com >>>>>>>>> >>>>>>>>> <https://groups.google.com/d/msgid/chicagoboss/25c2cda4-1d4f-434f-8115-8e712e2b37df%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>> . >>>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>>> >>>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "ChicagoBoss" group. >>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>> send an email to chicagoboss...@googlegroups.com. >>>>>>> Visit this group at https://groups.google.com/group/chicagoboss. >>>>>>> To view this discussion on the web visit >>>>>>> https://groups.google.com/d/msgid/chicagoboss/edf3fce5-8786-4f27-90d7-dc52502eecf8%40googlegroups.com >>>>>>> >>>>>>> <https://groups.google.com/d/msgid/chicagoboss/edf3fce5-8786-4f27-90d7-dc52502eecf8%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>> . >>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>> >>>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "ChicagoBoss" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to chicagoboss...@googlegroups.com. >>>>> Visit this group at https://groups.google.com/group/chicagoboss. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/chicagoboss/0504e321-78e2-4a5a-8af8-4f5efc8ea153%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/chicagoboss/0504e321-78e2-4a5a-8af8-4f5efc8ea153%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "ChicagoBoss" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to chicagoboss...@googlegroups.com. >>>> Visit this group at https://groups.google.com/group/chicagoboss. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/chicagoboss/a28a3d3f-c449-4bce-9b0b-ae31d995dd07%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/chicagoboss/a28a3d3f-c449-4bce-9b0b-ae31d995dd07%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "ChicagoBoss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to chicagoboss...@googlegroups.com <javascript:>. >> Visit this group at https://groups.google.com/group/chicagoboss. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/chicagoboss/0de63407-d775-4a46-b48b-7220a3d98841%40googlegroups.com >> >> <https://groups.google.com/d/msgid/chicagoboss/0de63407-d775-4a46-b48b-7220a3d98841%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/c944beb4-7519-4123-b92b-458e45629bc3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.