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

Laravel 5.5 Support #62

Closed
jwolfe215 opened this Issue Feb 1, 2018 · 3 comments

Comments

Projects
None yet
4 participants
@jwolfe215

jwolfe215 commented Feb 1, 2018

I am trying to use this library with a Laravel 5.5 project, but Laravel 5.5 required symfony/event-dispatcher version 4.0.4, while this library goes up to v3.4.4 it seems.

Can this work with 4.0.4, or am I SOL?

I'm tempted to download it manually and test it out, but wanted to check with the maintainers first.

@grokify

This comment has been minimized.

Show comment
Hide comment
@grokify

grokify Feb 5, 2018

Member

Here is a follow-up post from our Community. Please keep discussion here since this is a SDK specific topic.

https://devcommunity.ringcentral.com/ringcentraldev/topics/undefined-property-this-appkey


Undefined Property $this->_appKey

Hi all,

I am trying to integrate Ring Central into my Laravel 5.5 site for a business with a Ring Central account.

I had to download the SDK manually, but I have the page displaying without error IF I set the line

'client_id' => $this->_appKey,

equal to a constant inside the authUrl function.

public function authUrl($options)
{

    return $this->createUrl(self::AUTHORIZE_ENDPOINT . '?' . http_build_query(
        array (
        'response_type' => 'code',
        'redirect_uri'  => $options['redirectUri'] ? $options['redirectUri'] : null,
        'client_id'     => $this->_appKey,
        'state'         => $options['state'] ? $options['state'] : null,
        'brand_id'      => $options['brandId'] ? $options['brandId'] : null,
        'display'       => $options['display'] ? $options['display'] : null,
        'prompt'        => $options['prompt'] ? $options['prompt'] : null
    )), array(
        'addServer'     => 'true'
    ));
}

But if I do not set the client_id property to some constant I get an error saying that $this->_appKey is an undefined property.

If I do set that value to a constant of my correct client_id I get this error:

{
  "error" : "invalid_client",
  "error_description" : "Invalid client: ",
  "errors" : [ {
    "errorCode" : "OAU-153",
    "message" : "Invalid client: ",
    "parameters" : [ {
      "parameterName" : "client_id",
      "parameterValue" : ""
    } ]
  } ]
}

Jesse Wolfe

Member

grokify commented Feb 5, 2018

Here is a follow-up post from our Community. Please keep discussion here since this is a SDK specific topic.

https://devcommunity.ringcentral.com/ringcentraldev/topics/undefined-property-this-appkey


Undefined Property $this->_appKey

Hi all,

I am trying to integrate Ring Central into my Laravel 5.5 site for a business with a Ring Central account.

I had to download the SDK manually, but I have the page displaying without error IF I set the line

'client_id' => $this->_appKey,

equal to a constant inside the authUrl function.

public function authUrl($options)
{

    return $this->createUrl(self::AUTHORIZE_ENDPOINT . '?' . http_build_query(
        array (
        'response_type' => 'code',
        'redirect_uri'  => $options['redirectUri'] ? $options['redirectUri'] : null,
        'client_id'     => $this->_appKey,
        'state'         => $options['state'] ? $options['state'] : null,
        'brand_id'      => $options['brandId'] ? $options['brandId'] : null,
        'display'       => $options['display'] ? $options['display'] : null,
        'prompt'        => $options['prompt'] ? $options['prompt'] : null
    )), array(
        'addServer'     => 'true'
    ));
}

But if I do not set the client_id property to some constant I get an error saying that $this->_appKey is an undefined property.

If I do set that value to a constant of my correct client_id I get this error:

{
  "error" : "invalid_client",
  "error_description" : "Invalid client: ",
  "errors" : [ {
    "errorCode" : "OAU-153",
    "message" : "Invalid client: ",
    "parameters" : [ {
      "parameterName" : "client_id",
      "parameterValue" : ""
    } ]
  } ]
}

Jesse Wolfe

@grokify

This comment has been minimized.

Show comment
Hide comment
@grokify

grokify Feb 6, 2018

Member

'client_id' => $this->_appKey, resolved in 3964cf9

Member

grokify commented Feb 6, 2018

'client_id' => $this->_appKey, resolved in 3964cf9

@kirill-konshin

This comment has been minimized.

Show comment
Hide comment
@kirill-konshin

kirill-konshin Mar 8, 2018

Contributor

Closed due to inactivity

Contributor

kirill-konshin commented Mar 8, 2018

Closed due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment