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

Overtrue\Wechat\Media not found #801

Closed
sherryt400 opened this issue Jul 16, 2017 · 1 comment
Closed

Overtrue\Wechat\Media not found #801

sherryt400 opened this issue Jul 16, 2017 · 1 comment

Comments

@sherryt400
Copy link

sherryt400 commented Jul 16, 2017

[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Overtrue\Wechat\Media' not found

I don't see either in vendor/overtrue/wechat/src/ folder
How to upload media files now in order to get $media_id?

my code

<?php
use Overtrue\Wechat\Media;
// $appId = xxxx;
// $appSecret = xxxx;
// ...
$media = new Media($appId, $appSecret);
$imageId = $media->image(__DIR__ . '/demo.jpg'); // 上传并返回媒体ID
$message = Message::make('image')->media($imageId);
--

i am using code from here: https://easywechat.org/en/docs/messages.html

@overtrue
Copy link
Collaborator

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

2 participants