Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cant connect to Zanox API #3

Open
TiberioBrasil opened this issue Oct 8, 2015 · 8 comments
Open

I cant connect to Zanox API #3

TiberioBrasil opened this issue Oct 8, 2015 · 8 comments

Comments

@TiberioBrasil
Copy link

Hi rtrompier,

Im trying to use your script, but the curl is retrieving blank. Can you help me?

@henriquelbsouza
Copy link

Same problem here...

@TiberioBrasil
Copy link
Author

Henrique, segue uma outra solução:

<?

    DEFINE('_CONNECT_ID', 'XXXXX');

    DEFINE('_AD_SPACE' , 'YYYYY');

    $URL = 'http://www.walmart.com.br/';

    $LINK = 'http://toolbox.zanox.com/tools/api/deeplink?connectid=' . _CONNECT_ID . '&url=' . urlencode($URL) . '&adspaceid=' . _AD_SPACE;



    $deeplink = file_get_contents($LINK);

    $deeplinkXML = simplexml_load_string($deeplink);

    echo $deeplinkXML->url;

?>

@henriquelbsouza
Copy link

@OfertasDescontos opa, assim que chegar em casa vou testar, valeu :)

No caso ele gera o deep link pro $URL direto? é isso?

@TiberioBrasil
Copy link
Author

Exatamente. O pessoal da zanox tem um arquivo do word que tem esse passo-a-passo. Mas, resumindo tudo, é isso ai! :)

@henriquelbsouza
Copy link

Entendi, valeu mesmo amigo, estava sofrendo a uns dias aqui já... assim que testar te dou um feedback 👍

@henriquelbsouza
Copy link

@OfertasDescontos funcionou perfeitamente para o que eu precisava, muito obrigado :)

Você está utilizando em algum sistema/plataforma?

@bactisme
Copy link

I updated the current class to work with the current toolbox :
https://gist.github.com/bactisme/26b9b4907b60323eea03acfe4e3b4dc4

@rtrompier
Copy link
Owner

hi guys, sorry it's been a while since I have not touched this code.
There have certainly been updated side zanox.
It works for you now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants